Month: octobre 2009

Total 2 Posts

Linux – vérification qu’un process fonctionne

Un petit script pour vérifier qu’un process fonctionne. Voici l’exemple avec prelude-lml : #!/bin/bashNBR_PRELUDELML=`ps -edf | grep prelude-lml | wc -l`echo "valeur : $NBR_PRELUDELML"if [ $NBR_PRELUDELML -le 1 ]; then        /etc/init.d/prelude-lml start        echo "Lancement de prelude-lml"fi Un truc assez bizarre que je n’ai pas réussi à régler, c’est que parfois

Continue Reading