Re: time -h option not working?
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 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: time -h option not working?
# -Original Message- # From: [EMAIL PROTECTED] [mailto:owner-freebsd- # [EMAIL PROTECTED] On Behalf Of Giorgos Keramidas # Sent: Friday, 4 April 2003 12:49 # To: Carl Morley # Cc: [EMAIL PROTECTED] # Subject: Re: time -h option not working? # # On 2003-04-04 12:35, Carl Morley <[EMAIL PROTECTED]> 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 # Thanks, that worked great. CLM. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: time -h option not working?
On 2003-04-04 12:35, Carl Morley <[EMAIL PROTECTED]> 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 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: time -h option not working?
In the immortal words of "Carl Morley" <[EMAIL PROTECTED]>... > 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 > type which time and you will probably find that it's an internal command to tcsh and the -h switch doesn't work except fr the actual base system command -- | The most exciting phrase to | Tim Aslat <[EMAIL PROTECTED]> | | hear in science, the one that | http://www.spyderweb.com.au | | heralds new discoveries, is | Spyderweb Consulting | | not "Eureka!" (I found it!) | P: 82270800M: 0401088479 | | but "That's funny ..."| Webmaster for| | -- Isaac Asimov | http://www.goodiesruleok.com | | No, "Eureka" is Greek for | The Ultimate Goody Fansite | | "This bath is too hot!| [EMAIL PROTECTED] | | -- Dr Who | | ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
time -h option not working?
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? Cheers, Carl. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"