limit output file size

Nate Eldredge neldredge at
Thu Jul 24 14:57:25 UTC 2003

On Fri, 25 Jul 2003, alessandro bonvicini wrote:

> Hi all,
> I need to strace a program  for a long number of hours. Possibly >24 . Now
> when the strace output file exceed two gigabyte strece stop and so on the
> program traced. How is possible to limit the size of the output file and when
> the file became bigger than a certain value reset it to zero dim and restart
> from the beginning?

You could pipe the output of strace into a program such as split or tail.


Nate Eldredge
neldredge at

More information about the Strace-devel mailing list