Comment vérifier si un id de processus (PID) existe

Dans un script bash, je veux faire la chose suivante (en pseudo-code):

if [ a process exists with $PID ]; then

    kill $PID 

fi

Ce qui est l'expression appropriée pour l'instruction conditionnelle?

InformationsquelleAutor Richard H | 2010-06-15