From owner-freebsd-questions@FreeBSD.ORG Thu Apr 3 18:49:02 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 3149237B401 for ; Thu, 3 Apr 2003 18:49:02 -0800 (PST) Received: from thalia.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34AA043F85 for ; Thu, 3 Apr 2003 18:49:00 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b122.otenet.gr [212.205.244.130]) by thalia.otenet.gr (8.12.9/8.12.9) with ESMTP id h342mht0026391; Fri, 4 Apr 2003 05:48:52 +0300 (EEST) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.9/8.12.9) with ESMTP id h342me4C019515; Fri, 4 Apr 2003 05:48:40 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.9/8.12.9/Submit) id h342megY019514; Fri, 4 Apr 2003 05:48:40 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 4 Apr 2003 05:48:40 +0300 From: Giorgos Keramidas To: Carl Morley Message-ID: <20030404024840.GA19481@gothmog.gr> References: <006001c2fa52$ec77ed60$0a64a8c0@webizepc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <006001c2fa52$ec77ed60$0a64a8c0@webizepc> 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 02:49:02 -0000 On 2003-04-04 12:35, Carl Morley wrote: > > 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? You're probably using your shell's builtin "time" command instead of /usr/bin/time. Try specifying the full path to /usr/bin/time: : bash-2.05b$ /usr/bin/time -h ls -laR /usr/src/sys >/dev/null : 4.96s real 0.34s user 0.69s sys : bash-2.05b$ - Giorgos