Since vmstat is going to be in control, that's going to be rough to make
happen without at least a bash script using sleep, date, and invoking vmstat
for a 1 time output and looping..

Have you considered using sar (sysstat package) ?   It will give you the
same info (plus more) and produce reports that have timestamps, etc...

Scott Rohling

On Tue, Sep 23, 2008 at 1:21 PM, Tom Duerbusch
<[EMAIL PROTECTED]>wrote:

> 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

Reply via email to