Skip to content

Instantly share code, notes, and snippets.

@rsa
Created October 25, 2011 08:14
Show Gist options
  • Select an option

  • Save rsa/1311813 to your computer and use it in GitHub Desktop.

Select an option

Save rsa/1311813 to your computer and use it in GitHub Desktop.
core parser script
#!/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