prstat command is really useful and I am getting the output as expected.But I would like to add 'timestamp" for each record.How do I do that ? Can any body please help me with this ?Thanks.
[211 byte] By [RameshACSTS] at [2007-11-26 10:19:28]
This will run prstat once every 10 seconds,with the time & date prepended.Is that what you're after?#!/bin/kshwhile true ;do echo echo date prstat 1 1 sleep 10done