From owner-freebsd-questions@FreeBSD.ORG Thu Apr 3 19:28:26 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C92A37B401 for ; Thu, 3 Apr 2003 19:28:26 -0800 (PST) Received: from priv-edtnes61.telusplanet.net (outbound01.telus.net [199.185.220.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94F8843F75 for ; Thu, 3 Apr 2003 19:28:25 -0800 (PST) (envelope-from viktorlazlo@telus.net) Received: from [192.168.1.100] ([207.6.246.202]) by priv-edtnes61.telusplanet.netESMTP <20030404032825.BXEW19979.priv-edtnes61.telusplanet.net@[192.168.1.100]>; Thu, 3 Apr 2003 20:28:25 -0700 Date: Thu, 3 Apr 2003 19:28:02 -0800 (PST) From: Viktor Lazlo X-X-Sender: viktorlazlo@a3ij25fvy80j.bc.hsia.telus.net To: Carl Morley In-Reply-To: <006001c2fa52$ec77ed60$0a64a8c0@webizepc> Message-ID: <20030403192440.I26227-100000@a3ij25fvy80j.bc.hsia.telus.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: time -h option not working? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 03:28:26 -0000 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