in reply to Re: Re: Forking in a CGI program on Windows systems
in thread Forking in a CGI program on Windows systems
Something like this should work:
@args = ("command", "arg1", "arg2"); system(@args) == 0 or die "system @args failed: $?";
Update: Or maybe this is better since exec() doesn't return to the current script:
@args = ("command", "arg1", "arg2"); exec { $args[0] } @args or print STDERR "couldn't exec $args[0]: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Forking in a CGI program on Windows systems
by relax99 (Monk) on Nov 08, 2002 at 19:37 UTC | |
by Mr. Muskrat (Canon) on Nov 08, 2002 at 20:30 UTC |