Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 11-10-2005, 08:49 AM   #1
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


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.

Old 11-10-2005, 09:01 AM   #2
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
use full path to time :
/usr/bin/time -f "%E" find -type f
That should work on both distros
Old 11-10-2005, 09:03 AM   #3
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


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-28-2008 12:28 AM
amarok progressbar time elapsed problem abattoir Linux - Software 0 04-13-2005 11:31 AM
elapsed time formula for open office calc philosophe Linux - Software 1 03-30-2005 06:32 AM
Howto Monitor elapsed time in a shell script rkrijger Linux - Software 2 03-11-2004 09:46 AM
getting elapsed time.. Mad_C Programming 2 04-01-2003 02:12 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:19 PM.

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