Public bug reported: Doing an 'strace -ff -o food ls' gives an output file 'food' instead of 'food.pid_of_ls'. My guess is that strace has to fork() and then execve(), so it should be trivial to derive the pid of the child.
Read the man page for strace, on the -ff option. This is also: http://sourceforge.net/tracker/index.php?func=detail&aid=1528125&group_id=2861&atid=102861 ** Affects: strace (Ubuntu) Importance: Untriaged Status: Unconfirmed -- 'strace -ff -o filename' doesn't give a pid of first process https://launchpad.net/bugs/53976 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs