Re: time command

2008-06-30 Thread Sam Steingold
Chuck Swiger wrote: On Jun 24, 2008, at 7:47 AM, Sam Steingold wrote: I would like all long-running commands to be auto-timed. i.e., all commands I type at the prompt should be run as if with "time" built-in, but if the real or user time is smaller than some value (specified by the user in an en

Re: time command

2008-06-24 Thread Chuck Swiger
On Jun 24, 2008, at 7:47 AM, Sam Steingold wrote: I would like all long-running commands to be auto-timed. i.e., all commands I type at the prompt should be run as if with "time" built-in, but if the real or user time is smaller than some value (specified by the user in an environment variable

Re: time command

2008-06-24 Thread Sam Steingold
Francis Litterio wrote: Eric Blake wrote: According to Yu Cha Yung on 6/23/2008 12:24 AM: |time ls > time.txt |It doesnt show the information of time in time.txt. That's because in bash, time is a reserved word, and because time's output goes to stderr, not stdout. [...] \time ls >

Re: time command

2008-06-23 Thread Francis Litterio
Eric Blake wrote: > According to Yu Cha Yung on 6/23/2008 12:24 AM: > |time ls > time.txt > |It doesnt show the information of time in time.txt. > > That's because in bash, time is a reserved word, and because time's output > goes to stderr, not stdout. [...] > \time ls >time.txt 2>&1 O

Re: time command

2008-06-23 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [redirecting to bug-bash, as this is a bash-specific question] According to Yu Cha Yung on 6/23/2008 12:24 AM: |Hi, |I am trying to export the output of time into a text file but failed =sing |the following command: |time ls > time.tx