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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
swap space manoj.solaris Linux 1 08-22-2007 03:11 AM
Swap space used??? Lestat UNIX for Dummies Questions & Answers 1 02-17-2005 07:51 AM
swap space / paging space aaronh AIX 2 05-19-2004 07:06 AM
pageing space vs swap space VeroL UNIX for Dummies Questions & Answers 1 01-22-2004 07:54 AM
SWAP SPACE SmartJuniorUnix UNIX for Dummies Questions & Answers 5 11-12-2000 08:08 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-18-2005
una una is offline
Registered User
 

Join Date: Jan 2005
Posts: 6
swap space and cpu usage for an application

Hi,
How do i get the swap space used and cpu usage for a particular application ?

thanks
una
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-18-2005
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,498
You can do this with ps, giving it a custom output format.
man ps

It depends al bit on your actual OS, but you could try "top" if it is installed or on solaris prstat.
Reply With Quote
  #3 (permalink)  
Old 03-19-2005
esham's Avatar
Registered User
 

Join Date: Nov 2004
Location: INDIA
Posts: 97
Hello

Quote:
top | awk '(int($1)== $1) && ($2=="root") { print $2 " " $9 " "$10}'
Hope this will work..

Please try

esham
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:51 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0