#/bin/bash
if [ -z $1 ]
then
echo "Bitte geben Sie einen User an"
exit 1
fi
thread=`ps -u $1 | awk '{print $1}' | grep -v PID`
#echo $thread
j=0
for i in ${thread[*]}
do
echo "kill" $i
done
kurs/kill_user.sh.txt · Last modified: 2014/09/10 21:22 (external edit)