LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 06-20-2006, 05:39 AM   #1
hinetvenkat
Member
 
Registered: Nov 2004
Location: Mumbai
Posts: 80

Rep: Reputation: 15
How to find old processes ?


Hi

I need to kill all 10 days old processes. How to find the 10 days old processes through "find" command.

Thanks
 
Old 06-20-2006, 06:27 AM   #2
mekump
LQ Newbie
 
Registered: Feb 2006
Distribution: CentOS-4
Posts: 19

Rep: Reputation: 0
Hello,

I am not so sure you can find processes with the 'find' command. I would think you would need to use the 'ps' command. I also would think you wouldn't want to kill all 10 day processes because if the system has been up and running for 10 days or longer you would be killing some important processes. If you know the name of the processes that you want killed, you could probably use the 'killall' command.

Mike
 
Old 06-20-2006, 07:27 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,990
Blog Entries: 54

Rep: Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743
I would think you would need to use the 'ps' command.
I agree. ps with the "-eo %t" flag, for example.


I also would think you wouldn't want to kill all 10 day processes because if the system has been up and running for 10 days or longer you would be killing some important processes.
Good one, but that can be checked against a white or blacklist.
 
  


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
how can i find orphan processes? thecoolguy Linux - General 2 04-09-2006 01:01 AM
Find processes paraiso Linux - Newbie 9 04-28-2005 03:36 PM
What are these processes doing? Dark Jedi Linux - Newbie 1 12-15-2004 07:44 AM
monitoring active processes and identifying the required processes. gajaykrishnan Programming 2 08-13-2004 01:58 AM
how to find CPU and IO bound processes tuxrhl Linux - General 0 11-22-2003 01:11 AM


All times are GMT -5. The time now is 12:14 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration