[K12OSN] cron to kill users or group?

Darryl Palmer dpalmerjr at gmail.com
Fri Mar 24 18:03:42 UTC 2006


Hello William,

You can take one of the scripts that you already found and modify the call
to "ps" to display only the jobs you are interested in, for example:

To call ps and display only the jobs for the group "students" use

ps -G students

So one simple script would be:

kill `ps -G students | awk '{print$1}'`

Darryl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/k12osn/attachments/20060324/8b24539c/attachment.htm>


More information about the K12OSN mailing list