David S. Miller wrote:
>It's actually pretty easy once if you can get a shell on the machine
>before the event, once you know the program in question:
>mv /path/to/${PROGRAM} /path/to/${PROGRAM}.ORIG
>edit /path/to/${PROGRAM}
>#!/bin/sh
>strace -f -o /tmp/${PROGRAM}.trace /path/to/${PROGRAM}.ORIG $*
Actually, this is slightly inefficient and flawed for the general case.
I normally use:
#!/bin/sh
exec /usr/bin/strace -f -o /tmp/${PROGRAM}.trace /path/to/${PROGRAM}.ORIG "$@"
instead (the quotes are significant).
-- Sincerely, srb@cuci.nl Stephen R. van den Berg (AKA BuGless).WARNING: Do not look into laser with remaining eye
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon Feb 07 2000 - 21:00:09 EST