Re: Linux measuring elapsed time for a shell command
From: Nick Landsberg (hukolau_at_NOSPAM.att.net)
Date: 05/11/04
- Next message: Alain Broisin: "dll ffmpeg with MinGW/msys"
- Previous message: Douglas O'Neal: "Re: Linux measuring elapsed time for a shell command"
- In reply to: Peter Grossi: "Linux measuring elapsed time for a shell command"
- Next in thread: Alan Connor: "Re: Linux measuring elapsed time for a shell command"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 11 May 2004 16:20:56 GMT
Peter Grossi wrote:
> Hi
>
> I am trying to measure the elapsed time for execution of a shell
> command under RedHat 9.0
>
> By putting "time" at the start of the command line, the command is
> executed and the time statistics are reported on screen.
>
> E.g. time dir
>
> The problem is that I need the time statistics to be redirected to a
> file or to a pipe. I have tried various things, but while I can get
> the command output to a file or pipe the time statistics will only go
> to the terminal screen.
>
> Can anybody help?
>
> Thanks
>
> Peter Grossi
On some shells, "time" is a built-in and may
not be subject to redirection. See if there's
a /usr/bin/time on your system. If there is
you CAN redirect it's output (which is stderr)
HTH
-- "It is impossible to make anything foolproof because fools are so ingenious" - A. Bloch
- Next message: Alain Broisin: "dll ffmpeg with MinGW/msys"
- Previous message: Douglas O'Neal: "Re: Linux measuring elapsed time for a shell command"
- In reply to: Peter Grossi: "Linux measuring elapsed time for a shell command"
- Next in thread: Alan Connor: "Re: Linux measuring elapsed time for a shell command"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|