#!/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 test $pid -gt 0 # then if [ $pid -gt 0 ] ; then # if test $i -eq 0 if [ $i -eq 0 ] ; then renice $pid fi echo "signial: " $i i=$(($i+1)) kill -$i $pid else i=$b echo "fin du programe " fi done exit 0