LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-09-2009, 07:33 PM   #1
alexz1011
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: Disabled
Running ‘top’ with ‘Irix mode’ off in batch mode


Hi there, a first poster here.

Can anyone tell me how I can tweak the following top command so that it always runs in Irix/Solaris mode in a batch mode operation?

Code:
top -d 3 -n 2 -b -p <PID>
I need 'top' to output a process' CPU usage that had already been divided by the total number of CPUs, and as far as I know, that can be achieved with the 'I' toggle (Irix mode), but it only seems to be available in interactive operation (not in batch operation).

So I was wondering if this is indeed the case, or does anyone know any workaround for what I intended to achieve?

Thanks!

PS. OS: RedHat Enterprise Linux 5.
 
Old 10-02-2009, 03:29 PM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Have you tried specifying Irix mode in the personal configuration file? (Run top interactively, toggle to Irix mode and save configuration.)
 
  


Reply

Tags
cpuusage, top



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
top in batch mode doesnt work alebo Linux - General 4 07-27-2007 01:17 AM
Using top in batch mode neothephoenix Linux - Server 5 06-09-2007 02:21 PM
gpg in batch mode - help cricos Linux - Newbie 1 01-21-2006 08:14 PM
How can I change display mode from character mode to graph mode wuzhong Linux - Hardware 1 08-08-2004 09:36 AM
MySQL in batch mode ganninu Linux - General 1 11-20-2003 05:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:23 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
Open Source Consulting | Domain Registration