Prevent stretch from absurd arguments?

I am trying to use strace to find out what commands the program executes using execve . Some of the arguments in these commands are quite long, and strace is an abbreviation of execve arguments (I see "..." after about 30 characters), preventing me from getting any useful information. How can I get the full text of each argument?

I read the man page. The -v option prints an environment that is useful, but the arguments are still truncated.

 strace -f -e trace=execve -v -p 1234 

I also tried passing verbose = all, but that just gives additional information about SIGCHLD.

 strace -f -e verbose=all trace=execve -v -p 1234 
+85
linux strace
Jul 13 '11 at 0:15
source share
1 answer

You need the -s strsize parameter, which determines the maximum length of the displayed string (default is 32).

+116
Jul 13 2018-11-11T00: 00Z
source share



All Articles