Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Annoying time format issue

Status
Not open for further replies.

warmongr

MIS
Mar 17, 1999
214
US
I want to measure the time and memory resources it takes for a process on FC6 and RHEL 4 ES if I type time -f "\t%M" for instance it complains that "-f command not found". However if I use something like ls|time I get the help response from time saying that -f is a valid command line for formating output from time. What are there 2 versions of time on the system?


aaaahhhHHHH!

War.
 
The command "[tt]time[/tt]" is also a shell built in, which is why it's not recognizing the "[tt]-f[/tt]" parameter. Try invoking it like this...
Code:
/usr/bin/time -f "\t%M" your_command
That will force it to use [tt]/usr/bin/time[/tt] and not the shell built-in [tt]time[/tt].
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top