time command with options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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.

Thanks,

Jerry
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux