I have a few tools I use to deal with the scripts, first I want to see if there are any perl scripts running:
1 |
ps aux | grep .pl | grep –v grep |
Then I can kill them:
1 |
kill `ps aux | grep .pl | grep –v grep | awk ‘{print $2}’` |
Sometimes with the -9:
1 |
kill –9 `ps aux | grep .pl | grep –v grep | awk ‘{print $2}’` |
and sometimes for a specific user, again, the -9 flag can be used here as well
1 |
kill `ps aux | grep user | grep –v grep | awk ‘{print $2}’` |
Leave a Reply