![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Capturing the output from an exec command | avik | Shell Programming and Scripting | 1 | 11-07-2008 04:09 AM |
| Capturing output from grpck command on AIX | pdtak | UNIX for Dummies Questions & Answers | 2 | 03-05-2008 02:58 PM |
| Capturing output from C++ program | GMMike | UNIX for Dummies Questions & Answers | 3 | 03-08-2005 09:04 AM |
| capturing output in script | MizzGail | Shell Programming and Scripting | 6 | 06-02-2004 07:44 AM |
| Capturing cli Program output | Christopher | High Level Programming | 1 | 12-06-2001 11:08 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
capturing output from top and format output
Hi all, I'd like to capture the output from the 'top' command to monitor my CPU and Mem utilisation.Currently my command is
Code:
echo date `top -b -n1 | grep -e Cpu -e Mem` Code:
Tue Feb 24 15:00:03 Cpu(s): 3.4% us, 8.5% sy .. .. Mem: 1011480k total, 226928k used, ... Code:
Tue Feb 24 15:00:03 3.4% 8.5% ... 1011480k 226928k Code:
tob -b -n1 | grep -e Cpu -e Mem | awk '{print $2 $4
Code:
2.8% 7.0% 1011480k 227896k |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|