![]() |
|
|
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 |
| Passing Parameter in SED command | dsrookie | UNIX for Dummies Questions & Answers | 2 | 06-09-2008 02:25 AM |
| passing parameter from Shell-script to Sql-script | subodhbansal | Shell Programming and Scripting | 0 | 09-21-2007 07:15 AM |
| using tab to finish command line parameter | kymberm | Shell Programming and Scripting | 3 | 09-20-2002 04:54 PM |
| Command line parameter for C program | Wing m. Cheng | High Level Programming | 3 | 05-18-2002 10:43 AM |
| Command Line width parameter | Scoogie | UNIX for Dummies Questions & Answers | 2 | 02-08-2002 05:04 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Using of Top command as script parameter
Hi All
I am interested at using the output of Top command which shows some important system paramter related to CPU usage. I want to write a shell script in order to manipulate this output of command and to take some statistics for CPU. Basically, I tried to redirect the top output to a textfile in this way: Top > test Except the fact the this action lasted too much, the content of filled new file was misformatted, where rows where mixed with eachother. I have tried the same thing on a SUSE Linux machine and it worked. I dont know why here it doesnt work in order to have a formatted content in the file. Is there any solution for this? And besides the redirection method (top > test) is there any other method to create a file with the top output? Thanks and Best Regards Elthox |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|