why won't this script work in my Edubuntu setup?

David Trask dtrask at vcsvikings.org
Thu Aug 30 18:00:30 BST 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-users mailing list