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