From owner-freebsd-questions@freebsd.org Fri Apr 21 20:22:21 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CDF33D49B98 for ; Fri, 21 Apr 2017 20:22:21 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay15.qsc.de (mailrelay15.qsc.de [212.99.187.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4318F1145 for ; Fri, 21 Apr 2017 20:22:20 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay15.qsc.de; Fri, 21 Apr 2017 22:21:19 +0200 Received: from r56.edvax.de (port-92-195-67-137.dynamic.qsc.de [92.195.67.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 531D83CBF9; Fri, 21 Apr 2017 22:21:17 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v3LKLHSW004095; Fri, 21 Apr 2017 22:21:17 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 21 Apr 2017 22:21:17 +0200 From: Polytropon To: Ernie Luzar Cc: FreeBSD questions Subject: Re: Problem with time command Message-Id: <20170421222117.7244970a.freebsd@edvax.de> In-Reply-To: <58FA66D6.1040304@gmail.com> References: <58FA33B8.70807@gmail.com> <20170421184057.395ee6a3.freebsd@edvax.de> <58FA66D6.1040304@gmail.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay15.qsc.de with 8AD1868345D X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.1286 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2017 20:22:21 -0000 On Fri, 21 Apr 2017 16:08:54 -0400, Ernie Luzar wrote: > Polytropon wrote: > > On Fri, 21 Apr 2017 12:30:48 -0400, Ernie Luzar wrote: > >> issuing time -h custom.refresh > >> results in error message -h: Command not found > >> > >> issuing time -p custom.refresh > >> results in error message -p: Command not found > > > > I assume you're running this command interactively from within the > > C shell, right? In this case, use /usr/bin/time to use the actual > > "time" binary. If you don't, the C shell's built-in time command > > will be used. > > > > > > > > No I issued "time -h" "time -p" from the console command line. > "custom.refresh" is a sh script. > > I just tried "time date" from the command line and get the same results > as posted above. This is to be expected. When you interactively issue the command "time" from the C shell (which is the default interactive shell), the shell's internal time function will be used: % time -h true -h: Command not found. 0.000u 0.000s 0:00.00 0.0% 0+0k 0+0io 0pf+0w You need to explicitely specity that you wish to run the actual time _program_, by prefixing "time" with the path: % /usr/bin/time -h true 0.00s real 0.00s user 0.00s sys This will work; "man 1 time" refers to that program, _not_ to the C shell's internal implementation. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...