The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
a begginers question hadar UNIX for Dummies Questions & Answers 5 01-06-2008 05:44 PM
Enterprise Unix Roundup: The Ghost of Unix Future - Server Watch iBot UNIX and Linux RSS News 0 12-19-2007 08:20 AM
Running UNIX commands remotely in Windows box from Unix box – avoid entering password D.kalpana UNIX for Dummies Questions & Answers 1 04-20-2007 02:24 AM
FTP script for sending a file from one unix directory to another unix server director raja_1234 Shell Programming and Scripting 1 11-30-2006 03:57 AM
Unix History Question: Why are filenames/dirnames case sentsitive in Unix? deckard UNIX for Dummies Questions & Answers 3 03-26-2005 09:59 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-03-2007
Registered User
 

Join Date: Aug 2007
Posts: 8
Stumble this Post!
unix begginers

hi im a unix system beginner

i would like to write a script that will run as follows

1 it will read all process including what they are doing
2 it will list all the processes that were idle or not consuming space in the VMSTAT command like in the cpu or memory coloum so i can kill those processes.

hope you can help me thnks

cause there an alarm in in mail said that vmstat and i use the command and i see the msg and i go o ps -ef and saw a lot of proceses i dont know which proceses usually in idle or just a process not terminated when user log out..is that possible..


jao madn
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-03-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Stumble this Post!
Quote:
Originally Posted by jao_madn View Post
2 it will list all the processes that were idle or not consuming space in the VMSTAT command like in the cpu or memory coloum so i can kill those processes.
Is that wise, especially if you don't actually understand what their function is?
Reply With Quote
  #3 (permalink)  
Old 10-05-2007
Registered User
 

Join Date: Aug 2007
Posts: 8
Stumble this Post!
what did you mean

what did you mean by that..
Reply With Quote
  #4 (permalink)  
Old 10-05-2007
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,310
Stumble this Post!
Quote:
Originally Posted by jao_madn View Post
what did you mean by that..
u should not kill a process even if it don't consumes memory or cpu time! there are many sleeping processes in an unix server environmet...
Reply With Quote
  #5 (permalink)  
Old 10-08-2007
Registered User
 

Join Date: Aug 2007
Posts: 8
Stumble this Post!
ah.. i see..how about the processes that still running or sleeping like the -csh in which the user has been already logout..or the processes still running but the user who run that processes already logout...
thnks for the reply
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:08 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