[CentOS] time command with options

Jerry Geis geisj at pagestation.com
Tue Jan 13 15:14:43 UTC 2009

I am trying to get timing paramters from a CGI program.
date is just a command for example used here.

when I do: time { date; }
everything is good.

when I do: time -o file { date; }
I get
 time -o file { date; }
bash: syntax error near unexpected token `}'

How do I correctly issue the command with an option
for -o file to output the data to a file.



More information about the CentOS mailing list