LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-10-2010, 01:40 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 36
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.
 
Old 07-10-2010, 01:46 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
What kind of manipulation would you like to apply?
 
Old 07-10-2010, 02:33 AM   #3
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
I would like to take the machine name with maximum cpu utilization .
 
Old 07-10-2010, 03:05 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
And then?

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Send input from one script to another menu based script. simonedgcumbe Programming 9 03-24-2010 10:22 PM
Input needed on starting a new project rnmartinez Programming 4 09-25-2007 03:43 AM
Help needed on Mass user creation using shell script EsAsher Linux - General 3 06-30-2007 12:26 AM
Video Input Recomendation Needed benrose111488 Linux - Hardware 1 11-04-2005 09:46 AM
send automatic input to a script called by another script in bash programming jorgecab Programming 2 04-01-2004 01:20 AM


All times are GMT -5. The time now is 09:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration