I usually send the output to syslogd (and to a central loghost) - and there any message is getting its timestamp:
vmstat 5 86400 | logger -p local0.info -t myvmstat This might be a good solution if you want the output on a central place anyway Regards, Jürgen Friedrichs -----Ursprüngliche Nachricht----- Von: Linux on 390 Port [mailto:[EMAIL PROTECTED] Im Auftrag von Tom Duerbusch Gesendet: Dienstag, 23. September 2008 21:22 An: [email protected] Betreff: Timestamp a command? I would like an easy way to prefix the results of a command with the timestamp. The command: vmstat 10 8640 > vmstat.out I start this up at 5 PM, so I can see if some process starts using the Linux system at night. Great results, but without a timestamp, I don't know what time, something start using the system. I could use Regina to do this, but I'm interested if there is a more native way (without Perl) to do this. Thanks Tom Duerbusch THD Consulting Law of Dinner Table Attendance Cats must attend all meals when anything good is served. ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
smime.p7s
Description: S/MIME cryptographic signature
