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

Re: howto run a process which respawn after death.



On Thu, Nov 18, 1999 at 06:49:12PM +0100, Roland Mas wrote:
> Felipe Alvarez Harnecker <felipe@qlsoft.cl> writes:
> 
> > Is there a tool for start a proccess and after it dies the process
> > respawn ? Just like init does but from the command line.
> 
> $ while true ; do process ; done
> 
> or
> 
> $ (while true ; do process ; done) &
> 
> should do the trick.

Be careful you don't try this with a process that automatically forks
itself into the background! Unless you're _trying_ to cause trouble on
your machine that is...


-- 
  finger for GPG public key.
  16 Nov 1999 - new key generated, please stop using the old.

Attachment: pgpjvY_eT8Qba.pgp
Description: PGP signature


Reply to: