[ale] nesting timers still..

Wandered Inn esoteric at denali.atlnet.com
Thu Aug 16 13:29:33 EDT 2001


Joseph Andrew Knapka wrote:
> 
> Ned Williams wrote:
> >
> > hey gang,
> >
> > the time command gets me the results I need but it writes its output to
> > tty instead of std out..anyon know how to force it into stdout so I can
> > work it though awk and what not?
> 
> It's writing its output to standard error, most likely, so adding
> a 2>&1 to the time command should fix you up. (Assuming your shell is
> Bash or some other sh variant. There's some way to do the same
> thing (redirect stderr to stdout) in Csh, but I don't remember how.)

I think something like this is what you'll need:

2>time.out time programyourerunningtimeagainst

Otherwise:

time program 2>time.out

Will result in the stderr error from 'program' going to time.out, not
the stderr of 'time.'


> 
> -- Joe
> 
> > thanks
> > Ned
> >
> > --
> > To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
> 
> --
> # Joe Knapka
> # "You know how many remote castles there are along the
> #  gorges? You can't MOVE for remote castles!" - Lu Tze re. Uberwald
> # 2nd Lbl A + 1 = 2nd Pause 2nd Prt A
> --
> To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.

--
Until later: Geoffrey		esoteric at denali.atlnet.com

"I don't want a Microsoft Passport, and Microsoft can't have my wallet."
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list