i'm using a command wget for getting a testfile from
a server.
it writes a output:
--09:00:49-- http://www......:80/testfile.tst
=> `testfile.tst'
Connecting to www........:80... connected!
HTTP request sent, awaiting response... 200 OK
Length: 1,123,328 [application/octet-stream]
0K -> .......... .......... .......... .......... .......... [ 4%
+]
50K -> .......... .......... .......... .......... .......... [ 9%
+]
100K -> .......... .......... .......... .......... .......... [ 13%
+]
150K -> .......... .......... .......... .......... .......... [ 18%
+]
200K -> .......... .......... .......... .......... .......... [ 22%
+]
250K -> .......... .......... .......... .......... .......... [ 27%
+]
300K -> .......... .......... .......... .......... .......... [ 31%
+]
350K -> .......... .......... .......... .......... .......... [ 36%
+]
400K -> .......... .......... .......... .......... .......... [ 41%
+]
450K -> .......... .......... .......... .......... .......... [ 45%
+]
500K -> .......... .......... .......... .......... .......... [ 50%
+]
550K -> .......... .......... .......... .......... .......... [ 54%
+]
600K -> .......... .......... .......... .......... .......... [ 59%
+]
650K -> .......... .......... .......... .......... .......... [ 63%
+]
700K -> .......... .......... .......... .......... .......... [ 68%
+]
750K -> .......... .......... .......... .......... .......... [ 72%
+]
800K -> .......... .......... .......... .......... .......... [ 77%
+]
850K -> .......... .......... .......... .......... .......... [ 82%
+]
900K -> .......... .......... .......... .......... .......... [ 86%
+]
950K -> .......... .......... .......... .......... .......... [ 91%
+]
1000K -> .......... .......... .......... .......... .......... [ 95%
+]
1050K -> .......... .......... .......... .......... ....... [100%
+]
09:00:57 (182.83 KB/s) - `testfile.tst' saved [1123328/1123328]
i want write out to a doc file or txt file
todays date , start time (09:00:49) , end time (09:00:57) and avg down
+load rate (182.83 KB/s)
if i run it it the next time it need to be append to the file
thank you for helping or giving examples
Jimmy
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|