-1

Possible Duplicate:
How can I fire and forget a process in Perl?

How can i make a non blocking systems call in perl

I want to do it on windows .

system($cmd)  

I am trying to run this system command

system($cmd) ;
Community
  • 1
  • 1
Shashank Jain
  • 469
  • 1
  • 5
  • 11
  • 3
    http://stackoverflow.com/questions/2133910/how-can-i-fire-and-forget-a-process-in-perl http://stackoverflow.com/questions/2711520/how-can-i-run-perl-system-commands-in-the-background http://stackoverflow.com/questions/4053093/how-can-i-make-fork-in-perl-in-different-scripts http://stackoverflow.com/questions/8157848/how-to-spawn-other-programs-within-perl-script-and-immediately-continue-perl-pro http://stackoverflow.com/questions/8240483/how-to-launch-program-from-perl-as-a-separate-process – daxim Jan 24 '12 at 14:00

2 Answers2

2

In Windows only, you can use

system 1, $cmd;

to create and run a detached process.

mob
  • 117,087
  • 18
  • 149
  • 283
-1

You can use exec in a child process after you fork:

exec( $cmd ) if !fork();
xpapad
  • 4,376
  • 1
  • 24
  • 25