[mrtg] Need help with TIME
Max Kipness II
mkipness at aztechsolutions.com
Thu Feb 28 14:52:24 MET 2002
Content-Type: text/plain
I've been pulling out my hair trying to figure out this one. If anyone could
help, I sure would appreciate it.
What I'm trying to do is create a script that measures the time it takes to
read through the first page of a website, in milliseconds. I found the
command that does it, but I can't figure out how to capture the data and
parse the information for MRTG.
Here is what I'm using:
time lynx -crawl -dump www.yahoo.com <http://www.yahoo.com>
-connect_timeout=5 > /dev/null
The results are:
real 0m0.329s
user 0m0.130s
sys 0m0.040s
I'm trying to capture the line that starts with real (then parse with awk) ,
but when I added "|grep real" to the end of the line, it tries to add that
command to the timing process and still prints out all three time results.
I've tried numerous combinations, but have had no luck.
There is also another time function, /usr/bin/time, that allows you to
write results to a file. This works ok, but there is no way to get the
resulting time in milliseconds. Since the variation in load time is in
milliseconds, the graph would look pretty flat.
Thanks...
+--------------------------------+---------------------------------+
+ Max Kipness II, MCSE, CCNA + Aztech Solutions, Inc. +
+ Senior Network Engineer + 1327 Empire Central, STE 205 +
+ mkipness at aztechsolutions.com <mailto:mkipness at aztechsolutions.com> +
Dallas, Tx 75204 +
+ www.aztechsolutions.com <http://www.aztechsolutions.com/> +
Phone: 214-630-2223 +
+--------------------------------+---------------------------------+
+ ** Solving Business Problems with Technology Solutions ** +
+------------------------------------------------------------------+
-- Attached file removed by Listar and put at URL below --
-- Type: image/png
-- Size: 13k (13849 bytes)
-- URL : http://www.ee.ethz.ch/~slist/pantomime/aztechlogo.png
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list