Hi
I have a 3. part software that is leaving processes on the system.
I can easyly find the processes, becourse there should be any thats over 5 minutes old.
Is there a command to kill all processes thats over 5 min old?
Something like this but where only those over 5 min are captured
Thanks
LHG
I have a 3. part software that is leaving processes on the system.
I can easyly find the processes, becourse there should be any thats over 5 minutes old.
Is there a command to kill all processes thats over 5 min old?
Something like this but where only those over 5 min are captured
Code:
kill `ps -ef|grep sftp-server|awk '{print $2}'`
Thanks
LHG