<HTML >
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</HEAD>
<BODY lang=EN-US link=blue vlink=purple>
<DIV>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I think its using a shell built in. Try
doing “which time” (should be in /usr/bin/time) and using full path name for
time so it doesn’t use the shell built in.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
ale-bounces@ale.org [mailto:ale-bounces@ale.org] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Jim Kinney<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, February 17, 2010
1:21 PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Atlanta
Linux Enthusiasts - Yes! We run Linux!</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> [ale] gnu time</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>The "time"
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 "%E %M %F %W %I %O"
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'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 'which time' 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'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 "time" 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, <st1:City w:st="on"><st1:place w:st="on">Liberty</st1:place></st1:City>
and Happiness <o:p></o:p></span></font></p>
</div>
</DIV>
<DIV> </DIV>
<DIV>
<FONT FACE="Arial" SIZE="2">Proud partner. Susan G. Komen for the Cure.</FONT>
</DIV>
<DIV> </DIV>
<DIV>
<FONT FACE="Arial" COLOR="green" SIZE="1"><EM>Please consider our environment before printing this e-mail or attachments.</EM></FONT>
</DIV>
<DIV STYLE="FONT-SIZE: 9pt; FONT-FAMILY: Courier New">
<FONT FACE="Arial" SIZE="2">----------------------------------<BR>CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.<BR>----------------------------------<BR></FONT>
</DIV></BODY></HTML>