Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 09-09-2009, 08:33 PM   #1
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?

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?


PS. OS: RedHat Enterprise Linux 5.
Old 10-02-2009, 04:29 PM   #2
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.)


cpuusage, top

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

All times are GMT -5. The time now is 11:30 AM.

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