in reply to Run the process in the background
If you want to start something into the background and not wait for it to finish before returning to Perl, use fork() (which actually threads under Windows)
Alternatively you can use the Windows command start to start something in the background. You can use system( "start mycommand.exe" ); from Perl
I hope that's the question you're asking... ;) I think the error message you're seeing is from your application rather than Perl. You can put system( "command" ) and die "$!\n"; to see if the application returns anything over STDERR as well to check.
Update:The poster had previously not mentioned the OS being used - the use of cmd fooled me into thinking it was Windows :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Run the process in the background
by perl@newbie (Novice) on Aug 31, 2005 at 14:39 UTC |