[LUGOS] Ali dolocen proces tece?

Stojan Rancic stojan at aufbix.org
Sun Jun 29 22:51:59 CEST 2003


Hojla Janez,

Sunday, June 29, 2003, 10:50:33 PM, si napisal(a):


> Ali mi lahko kdo napise lupinski script s katerim bi ugotovil
> ali process z dolocenim imenim tece ali ne, tako da ga v primeru
> nedelovanja ponovno poženem (dam izvajanje scripte v cron)?

NUMPROC=`ps ax|grep procname|grep -v grep|wc -l`
if [ $NUMPROC -lt 1 ]; then
  /etc/init.d/run_process
fi


                              GreetZ, Stojan
---------------
First thing you do is shoot all the lawyers




More information about the lugos-list mailing list