Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^4: Fork and exec

by perlmonkdr (Beadle)
on May 02, 2008 at 20:34 UTC ( #684251=note: print w/replies, xml ) Need Help??


in reply to Re^3: Fork and exec
in thread Fork and exec

Well guys i post the solution for this isuee

When i think in execute multiple files without wait i say, ok, i need use childs

Anyway the solution come more simple, like this:

#!/usr/bin/perl use strict; use warnings; for my $a ( 1..10 ) { print "Exec: $a\n"; # Here I want execute and continue without # wait the status system "perl -e exec('sleep.pl')" ; } print "finish"; exit;

It's delegate the process to other instance of perl and exist when finish, i check in the system's process table and works ok!!

system(1, @args) can be but i'm not test

Thk to all for your help

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://684251]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2018-02-21 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (283 votes). Check out past polls.

    Notices?