limit output file size

Roland McGrath roland at redhat.com
Thu Jul 24 15:04:25 UTC 2003


There is no feature like that in strace.  What you can do is have strace
write to a named pipe instead of a file, and write a program that does
whatever you like reading from the named pipe.  i.e.:

	mkfifo /tmp/my-strace-log
	my-log-handler < /tmp/my-strace-log
	strace -o /tmp/my-strace-log my command &
	
If the program completes, strace will finish and close the named pipe,
which will make my-log-handler read EOF on its stdin.


Enjoy,
Roland




More information about the Strace-devel mailing list