Shell script to kill long running pid

PLease help me with unix script which will kill long running pids (older than one day).

I am totally new to unix 🙁

ps -ef| grep fid| grep ADAPTIVE

This command will give the list of all running PIDs, so I need a script to list PIDs running more than one day with date and then kill it.

Please help.


Source: shell

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.