This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: limiting strace?


At 04:32 PM 2/16/2004, Thomas L Roche wrote:
>> I know how to use those tools to *report from* strace.out ... but
>> that's not what I'm trying to do. I don't want to say, "give me the
>> last million lines from strace.out"--windows being what it is, if
>> the file's big enough I may not get a chance to ask!

Igor Pechtchanski 02/16/2004 05:06:35 PM:
> Simple: don't output the trace to a file. The "by default" up there
> means that if you don't supply the "-o" option, strace will send the
> trace to stdout.

>> I want instead to say something like, "don't let strace.out get
>> bigger than a million lines," or 1GB, or something like that. How
>> to do _that_, script wizards?

> Umm, how about something like the line below?

> strace unzip whatever | tail -1000000 > strace.out 2>&1 &

Doh! Much better, will try that.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]