Re: [CentOS] time command with options

2009-01-13 Thread Filipe Brandenburger
Hi, On Tue, Jan 13, 2009 at 13:24, nate wrote: > Try /usr/bin/time instead of 'time', I believe 'time' is a internal > command for bash as well. Right. However, /usr/bin/time won't accept the syntax above, this will not work: $ /usr/bin/time { date; } Of course you can: $ /usr/bin/time date O

Re: [CentOS] time command with options

2009-01-13 Thread nate
Jeff wrote: > Unless somebody else can shed some more light on this, I guess you are > stuck with output redirection provided by your chosen shell. Try /usr/bin/time instead of 'time', I believe 'time' is a internal command for bash as well. Threw me off for a while as well. (e.g. redirecting ti

Re: [CentOS] time command with options

2009-01-13 Thread Bill Campbell
On Tue, Jan 13, 2009, Jerry Geis wrote: >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

Re: [CentOS] time command with options

2009-01-13 Thread Jeff
On Tue, Jan 13, 2009 at 9:14 AM, Jerry Geis wrote: > 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 er