in reply to Re^2: Append the timestamp before and after the data in the logfile
in thread Append the timestamp before and after the data in the logfile
You said that you wanted a timestamp. The time command will certainly not give you that.
From man time
time - run programs and summarize system resource usage
An example of what you get when you use time is:
time perl -e 'print "hello world\n"' hello world real 0m0.006s user 0m0.000s sys 0m0.000s
Unless I seriously misunderstood your original question, then I doubt very much this is what you want.
Update: It just occurred to me that you're probably running this on Win32, in which case yes, you could use time. You probably want to add the /T switch.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Append the timestamp before and after the data in the logfile
by kulls (Hermit) on Dec 22, 2005 at 06:36 UTC | |
by McDarren (Abbot) on Dec 22, 2005 at 07:02 UTC | |
by blazar (Canon) on Dec 27, 2005 at 13:55 UTC | |
by blazar (Canon) on Dec 27, 2005 at 14:07 UTC |