LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Script creation (Input needed) (https://www.linuxquestions.org/questions/linux-newbie-8/script-creation-input-needed-819026/)

pinga123 07-10-2010 12:40 AM

Script creation (Input needed)
 
Hi ,

I m trying to write a script in linux .
The problem is the output of command get changed every now and then.
Just like top command in linux.

How would i manipulate the output of the command ?

The command i m talking about gives the real time values performance of hosted guest machines.

Since i m using oracle virtual technology this command may not be available on any other linux distribution.

Can anybody help me giving a clue go proceed further?
I have tried storing the output to a file using
Code:

xm top > abc.txt
but since its a real time execution the command never terminates by itself.
When terminated manually the content of abc.txt was difficult to manipulate.

Tinkster 07-10-2010 12:46 AM

What kind of manipulation would you like to apply?

pinga123 07-10-2010 01:33 AM

I would like to take the machine name with maximum cpu utilization .

Tinkster 07-10-2010 02:05 AM

And then?

Can you give us sample input, and what the desired result is?


All times are GMT -5. The time now is 04:58 PM.