Messages in this thread |  | | | Date | Thu, 3 Feb 2000 12:46:09 +0100 | | From | "Stephen R. van den Berg" <> | | Subject | Re: probably problem with "lo" interface (Re: Strange problem with 2.3.42) |
| |
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/
|  |