[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sprawdz proces uruchom go znowu jesli go, nie ma co 5 minut :)



On Mon, Apr 22, 2002 at 11:15:08PM +0200, Marcin Sobolew wrote:
> hmm wiecie to nie dla mnie dlatego sie Was pytam
> ...
> patrzylem tego eggdropa autobotchk czy cos takiego , ten skrypt jest troche
> duzy..
> mi chodzi o wykozystanie ps aux | grep proces ----> jesli nie ma to restart
> procesu ----- > jesli jest  sleep 5 minut :) czy cos podobnego...

Tak najprościej to:

ps ax|grep nazwa_programu|grep -v grep >/dev/null || uruchom_program

  eloy
-- 
 --Krzysztof-eloy-Krzyżaniak-----------------------eloy-@-transilvania-eu-org--

                               Ezoteryczny Poznań
                           Na Wildzie mieszka szatan


-- 
To UNSUBSCRIBE, email to debian-user-polish-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: