LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to find old processes ? (https://www.linuxquestions.org/questions/linux-software-2/how-to-find-old-processes-456498/)

hinetvenkat 06-20-2006 05:39 AM

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

mekump 06-20-2006 06:27 AM

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

unSpawn 06-20-2006 07:27 AM

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.


All times are GMT -5. The time now is 04:44 PM.