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

David Trask dtrask at vcsvikings.org
Wed Aug 29 22:06:38 UTC 2007


I had this script (below) which I used to use to "kill" users quickly....I
even used to build other scripts from this one....such as one that logged
off my kindergarten class...etc.  Problem is....it doesn't work in my
current Edubuntu situation (with smbldap).  any idea why?  What am I
missing?  I have the script in /usr/bin and the usage is

stop username 

used to work fine, but I know I'm missing something with Edubuntu.  Here's
the script....(commented to avoid messing with your system)  any ideas to
modify?

#   #!/bin/sh
#   # usage  stop username
#   # stop
#   # script to logoff a student
#   #

#   if [ $1 != "root" ]
#   then
#   for i in $(pgrep -u $1)
#   do
#      kill -9 $i
#   done
# else
#    clear
#    echo "Can't kill the root!!"
#  fi


David N. Trask
Technology Teacher/Director
Vassalboro Community School
dtrask at vcsvikings.org
(207)923-3100






More information about the edubuntu-devel mailing list