![]() |
|
|
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 |
| Any command to watch output repeatedly?? | sdspawankumar | SUN Solaris | 2 | 02-21-2008 01:11 PM |
| Command similar to "touch" for modify File size | sriharshareddyk | UNIX for Advanced & Expert Users | 3 | 11-15-2007 01:43 AM |
| Linux watch command on AIX? | djschmitt | UNIX for Dummies Questions & Answers | 2 | 11-06-2007 06:00 PM |
| Command that prints content of line5, or similar? | lunchtime | Linux | 4 | 07-09-2007 09:58 AM |
| Command similar to doskey | halel | UNIX for Dummies Questions & Answers | 4 | 05-16-2006 08:49 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi all, I am trying to create a file that shows the CPU usage, constantly updating (similar to TOP). So far i have a file (called test) containing: Code:
echo "The current CPU usage is:" `ps -e -o pcpu|awk 'NR > 0 { s +=$1 }; END {print s"%"}'`
and then I ran the command: Code:
watch -d 0.5 -t ./test This works perfectly, however it runs at full screen. I would like it just to update the line, as I will have other information around it. Any ideas??
|
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|