Hi,
If you're using bash, it has its own built-in version of 'time. Try to use the full path to the command:
/usr/bin/time -a -o log ls
HTH, Chris
Niall Moran wrote:
Hi,
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.
Thanks,
Niall
Below is the output I get when trying
[EMAIL PROTECTED] ~ $ time -a -o log ls -bash: -a: command not found
real 0m0.001s user 0m0.000s sys 0m0.001s
Below is the relevent section of the man page for time
-o FILE, --output=FILE Do not send the results to stderr, but overwrite the specified file.
-a, --append (Used together with -o.) Do not overwrite but append. -- [email protected] mailing list
-- [email protected] mailing list
