I'm trying to use strace to find out what commands a program executes using execve
. Some of the arguments in these commands are quite long, and strace is abbreviating the arguments to execve
(I see "..." after about 30 characters), preventing me from getting any useful information. How can I get the full text of each argument?
I've read the man page. The -v option prints the environment, which is useful, but the arguments are still truncated.
strace -f -e trace=execve -v -p 1234
I also tried passing verbose=all, but this just gives some extra information about SIGCHLD.
strace -f -e verbose=all trace=execve -v -p 1234
ioctl(3, SNDCTL_TMR_TEMPO or TCGETA, {B9600 -opost -isig -icanon -echo ...})
– Wanwand