[LUGOS] Ali dolocen proces tece?

Janez Grad janez.grad at eunet.si
Sun Jun 29 23:08:13 CEST 2003


Stojan, najlepsa hvala.

Janez.

> -----Original Message-----
> From: Stojan Rancic [mailto:stojan at aufbix.org]
> Sent: Sunday, June 29, 2003 10:52 PM
> To: lugos-list at lugos.si
> Subject: Re: [LUGOS] Ali dolocen proces tece?
>
>
> 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