why won't this script work in my Edubuntu setup?
David Trask
dtrask at vcsvikings.org
Thu Aug 30 17:00:30 UTC 2007
mariodebian <mariodebian at gmail.com> writes:
>Try this:
>
>#!/bin/bash
>
>if [ "$1" = "root" ]; then
> echo "Can't kill root"
> exit
>fi
>
>pkill -9 -u "$1"
>========================
>
>
>"pkill -u" kills all process of username (see man pkill)
Now that's a good idea....similar to the "purge users" script in K12LTSP
David N. Trask
Technology Teacher/Director
Vassalboro Community School
dtrask at vcsvikings.org
(207)923-3100
More information about the edubuntu-devel
mailing list