time -h option not working?
Viktor Lazlo
viktorlazlo at telus.net
Thu Apr 3 19:28:26 PST 2003
On Fri, 4 Apr 2003, Carl Morley wrote:
> Hi,
> I just tried to use the time command to time a process, but with the -h
> (human readable) output option:
>
> Eg. time -h ping -c 5 some_ip_address
>
> But I get back:
> -h: Command not found.
> 0.000u 0.000s 0:00.00 0.0% 0+0k 0+0io 0pf+0w
>
> What am I doing wrong?
Nothing. The shell that you are using is calling a time builtin that
doesn't support the flag for the standard BSD utility. Try:
\time -h whatever
or
/usr/bin/time -h whatever
and it should work fine.
Cheers,
Viktor
More information about the freebsd-questions
mailing list