All pastes #349291 Raw Edit

Stuff

public text v1 · immutable
·published 2007-02-10 18:10 UTC
rendered paste body
#!/bin/sh
P1="/home/tnt/Desktop/compilation/"
P2="/home/tnt/Desktop/compilation/.config"
P3="/linux-source-2.6.18"
Source="linux-source-2.6.18.tar.bz2"
i=0
b=15
#n="nexuiz-linux-686-glx"
n=gcalctool
#passe le proc en prioriter basse, puis le tue si possible
while [ $i -lt $b ]
do
pid=`pidof $n`
echo $pid
        if [ $pid -gt 0 ] ; then
                if [ $i -eq 0 ] ; then
                        renice 19 $pid
                fi
                echo "signial: " $i
                i=$(($i+1))
                kill -$i $pid
        else
                i=$b
                echo "fin du programe "
        fi
done
exit