Hello, the utility time -- time command execution doesn't work as expected: time -h ls give: -h: Command not found. 0.000u 0.000s 0:00.00 0.0% 0+0k 0+0io 0pf+0w I have: 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #29: Sat Feb 18 02:31:01 CET 2006 amd64 -- MP
Mathieu Prevot wrote:> the utility time -- time command execution doesn't work as expected: > time -h ls > give: > -h: Command not found.You're using the "time" that's built into your shell: [eivind@vimes]<~> $/usr/bin/time -h uname FreeBSD 0.00s real 0.00s user 0.00s sys [eivind@vimes]<~> $ -- Regards / Hilsen Eivind Olsen <eivind@aminor.no>
On Tue, Feb 21, 2006 at 01:38:58PM +0100, Nicolas Rachinsky wrote:> * Mathieu Prevot <freebsd-stable@club-internet.fr> [2006-02-21 13:19 +0100]: > > the utility time -- time command execution doesn't work as expected: > > > > time -h ls > > > > give: > > > > -h: Command not found. > > Many shells have a builtin named time. Use 'which time' to verify this.Thank you both & sorry. Is there a simple way to force using /usr/bin/time instead of builtin time when I use just time ? Mathieu
> Hello, > > the utility time -- time command execution doesn't work as expected: > > time -h lstime is built into some shells. You need to get the right version of time. Use a backslash to tell the shell not to use it's builtin version or specify the full path. \time -h ls /usr/bin/time -h ls> give: > > -h: Command not found. > 0.000u 0.000s 0:00.00 0.0% 0+0k 0+0io 0pf+0w > > I have: > > 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #29: Sat Feb 18 02:31:01 CET 2006 amd64 > > -- > MP > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"-- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: Mark_Andrews@isc.org