Created
October 25, 2011 08:14
-
-
Save rsa/1311813 to your computer and use it in GitHub Desktop.
core parser script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| logfile=error_gdb.log; | |
| logtime=`date `; | |
| corefiles=`find ~/ -maxdepth 1 -name core*` | |
| for i in $corefiles; do | |
| echo "Crash time: $logtime " >> ~/$logfile | |
| gdb ~/bin/mangos-worldd -c $i -n --batch --command=~/bin/bt.sh >>~/$logfile | |
| rm $i | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment