On Mon, 2005-03-07 at 10:09 -0500, Dave Nebinger wrote:
> > > Im trying to write some scripts to record some times for creating
> > > graphs. Im trying to use the time command and have it output to a
> > > file. In the man page it gives details of how one can use the -o and
> > > -a switches to output to and append to a file. However the utility
> > > does not seem to recognise these switches. It does mention that these
> > > are GNU options but I thought the version I had was the GNU version.
> > > Any help is greatly appreciated.
> > 
> > 
> > You may find it easier to use /usr/bin/date in your scripts......
> 
> Date won't give him the same stats as time (time shows the different usage
> of kernel & user times, etc.).
> 
> For the OP, the man page is probably from the generic man pages ebuild, but
> the time you have is probably the built-in shell version (verify by typing
> "which time" and you'll probably get the 'no time in ...' response).
> 
> You can find the gnu version of time at
> http://www.gnu.org/software/time/time.html.
> 

... or, as stated earlier ``emerge sys-apps/time''. :)

dunno if I remember right (I've deleted early posts of this thread.)
If one wants to append rather than overwrite a file she needs to

$ time -ao outputfile command -a -r -g -s

instead of

$ time -a outputfile command -a -r -g -s

or

$ time -af formatstring -o outputfile command -a -r -g -s

--
[email protected] mailing list

Reply via email to