LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-10-2005, 07:49 AM   #1
innuendo_98
LQ Newbie
 
Registered: Mar 2005
Location: USA
Distribution: Mandrake
Posts: 19

Rep: Reputation: 0
Unhappy find elapsed time


I'm having problems trying to find the elapsed time of a process on a Red Hat box, while on a mandrake box i can do

time -f "%E" find -type f

and after finding the files it would yield

0:06.98


I can't get the same result on the redhat box, this is the output i get

bash: -f: command not found

real 0m0.001s
user 0m0.000s
sys 0m0.000s

how can i format the output in the redhat box so as to get the same result as on the other box?
There is also the issue of redirecting that output to a file, I can't user the '-o FILE' option either.

help will be greeatly appreciated.

Thanks
 
Old 11-10-2005, 08:01 AM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,444

Rep: Reputation: 94
use full path to time :
Code:
/usr/bin/time -f "%E" find -type f
That should work on both distros
 
Old 11-10-2005, 08:03 AM   #3
innuendo_98
LQ Newbie
 
Registered: Mar 2005
Location: USA
Distribution: Mandrake
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks, i just tried and it works like a charm
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash: how to get time (in seconds) elapsed since creation of a file? J_Szucs Linux - General 6 12-27-2008 11:28 PM
amarok progressbar time elapsed problem abattoir Linux - Software 0 04-13-2005 10:31 AM
elapsed time formula for open office calc philosophe Linux - Software 1 03-30-2005 05:32 AM
Howto Monitor elapsed time in a shell script rkrijger Linux - Software 2 03-11-2004 08:46 AM
getting elapsed time.. Mad_C Programming 2 04-01-2003 01:12 AM


All times are GMT -5. The time now is 06:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration