simple strace wrapper
Date: December 22, 2007
from using strace (thanks mike), i have learned that its easier to just have a makeshift wrapper for it that will automatically handle all the fun and dirty stuff for you (not that there is much).
#!/bin/bash # debug strace wrapper # saves output to temp in the form of /tmp/$1.$$ # "/path/to/command" can be just the command if your path is set to it (obviously) case $1 in '') echo "usage: $0 </path/to/command>" exit 1 ;; esac strace -o /tmp/$1.$$ $1
Leave a Reply