[K12OSN] cron to kill users or group?
Robert Arkiletian
robark at gmail.com
Sat Mar 25 02:34:50 UTC 2006
On 3/24/06, Petre Scheie <petre at maltzen.net> wrote:
> I've been considering something like this:
>
> for x in `cat file-of-IDs-to-be-logged-off`
> do
> pkill -u $x
> done
How about something like this
for x in `last | grep 'still logged in' | awk '{print $1}' | sort | uniq`
do
pkill -u $x
done
--
Robert Arkiletian
C++ GUI tutorial http://fltk.org/links.php?V19
More information about the K12OSN
mailing list