peter
asked on
vmstat format for mobile device
Hi everyone,
I need to format vmstat , this script should format vmstat for easy reading on cell phones etc, I am looking to send the output to email every three hours.
Output should look like this:
Sat Feb 18 11:15:48 PST 2012
1 processes are waiting
0 processes are blocked
Thank you!
I need to format vmstat , this script should format vmstat for easy reading on cell phones etc, I am looking to send the output to email every three hours.
Output should look like this:
Sat Feb 18 11:15:48 PST 2012
1 processes are waiting
0 processes are blocked
Thank you!
ASKER
ok, let me give this a shot : )
ASKER
Works great!
What if I wanted to add a log to this so it writes and keeps it for a week or so then starts a new one??
What if I wanted to add a log to this so it writes and keeps it for a week or so then starts a new one??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window
Then add
0 */3 * * * /path/to/above/script.sh
The above assumes that all of the commands specified are in /bin or /usr/bin. since that's the PATH which will be used - if they aren't, put in the full path to the commands.