in reply to [untitled node, ID 185227]

Using pseudo-code:
repeat fork & exec bot; wait; # That's the system call wait()! until doomsday;
Abigail

Replies are listed 'Best First'.
Re: Re: Automatically restarting process
by flounder99 (Friar) on Jul 25, 2002 at 18:58 UTC
    Abigail-II's suggestions is best on *nix. If you are stuck on Windows I would recommend Win32::Process
    use Win32::Process; my $ProcessObj; while(1) { Win32::Process::Create( $ProcessObj, $appname, $cmdline, $iflags, $cflags, $curdir) or die; $ProcessObj->Wait(INFINITE); }

    flounder