in reply to Re: spawning Perl scripts
in thread spawning Perl scripts
One way to start a process asynchronously is to use system() with an initial argument of 1:
The system(1, ...) call works at least on OS/2 too, and is "documented" in perlport.if ($^O eq "MSWin32") { system(1, "cmd_to_run arguments"); } else { # do fork and exec, or use system("cmd_to_run arguments &"); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: spawning Perl scripts
by awkmonk (Monk) on Mar 31, 2003 at 10:29 UTC |