The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 12-27-2006
elthox elthox is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 30
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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:25 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0