The &quot;time&quot; command is a useful tool to keep track of health issues for long processes. By tracking how long a process takes to complete (such as a large database query that outputs to a file on a cron job), stats can be churned that give good insite into overall performance, health, yada yada...<br>
<br>EXCEPT that the gnu time in RHEL 5.3 (and also in Fedora 11 and12) seems to not accept the -f format flag!<br><br>I would like to have time -f &quot;%E %M %F %W %I %O&quot; big_honkin_sql_query_script be used to track runtime stats on the process.<br>
<br>But the -f seems to be not understood by time. This is, of course, opposite the man pages and the info pages.<br><br>So I go and blather around and am getting a bit cross(er than usual) and start looking at my test system for major screwups.<br>
<br>I verify that time is /usr/bin/time and look at the command using strings /usr/bin/time. How strange! It claims to also provide a bit of help data on usage if one enters time --help.<br><br>But my system does do that. So to make sure I don&#39;t have a spurious path issue, I enter /usr/bin/time --help <br>
<br>Imagine my surprise when I get back what I saw in strings! So I do it again but drop the full path. No joy. I run &#39;which time&#39; and get back /usr/bin/time. <br>?????????????????????????????????WTF?????????????????????????????????<br>
<br>man time also refers to man (2) times. There is also a bash built-in called times. But so far I have found no bash built-in for time.<br><br>So here&#39;s some puzzling info:<br>$ rpm -q --whatprovides $(which time)<br>
time-1.7-35.fc11.i586<br>$ which time<br>/usr/bin/time<br>$ rpm -ql time-1.7-35.fc11.i586<br>/usr/bin/time<br>/usr/share/doc/time-1.7<br>/usr/share/doc/time-1.7/COPYING<br>/usr/share/doc/time-1.7/NEWS<br>/usr/share/doc/time-1.7/README<br>
/usr/share/info/time.info.gz<br><br>There is no man page loaded from the time package. It loaded from the man pages package. The info page is far more informative than the man page (sometimes gnu is irritating - man vs info is worse than vi vs emacs since vi and emacs can both get you to the same end result. man and info now provide different results).<br>
<br>What is being called when I exclude the full path? A locate produced lots of stuff with &quot;time&quot; in the name but only the /usr/bin/time was an executable.<br clear="all"><br>-- <br>-- <br>James P. Kinney III<br>
Actively in pursuit of Life, Liberty and Happiness         <br><br>