Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Apr 2003 19:28:02 -0800 (PST)
From:      Viktor Lazlo <viktorlazlo@telus.net>
To:        Carl Morley <bsdmn@webize.com.au>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: time -h option not working?
Message-ID:  <20030403192440.I26227-100000@a3ij25fvy80j.bc.hsia.telus.net>
In-Reply-To: <006001c2fa52$ec77ed60$0a64a8c0@webizepc>

next in thread | previous in thread | raw e-mail | index | archive | help


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030403192440.I26227-100000>