Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Strangely i can't find it any where but when i stdout the output of strace into afile like this:

strace foo.exe | & tee foo.log

the out put is to short, how can i make the width longer?

share|improve this question

The "-s" option under Linux, from the "strace" package, will let you specify the width:

-s strsize  Specify  the  maximum  string  size  to  print  (the
            default is 32).  Note that filenames are not consid-
            ered strings and are always printed in full.
share|improve this answer

Use '-o filename' option:

  strace -f -o foo.log foo

man strace

-o filename Write the trace output to the file filename

share|improve this answer
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review – kasperd Mar 4 at 9:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.