Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Executing programs without waiting

by GrandFather (Saint)
on Nov 22, 2005 at 21:46 UTC ( [id://510928]=note: print w/replies, xml ) Need Help??


in reply to Executing programs without waiting

exec doesn't return to the "calling" program, so you could fork and exec to get that behaviour.


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^2: Executing programs without waiting
by gcoates (Novice) on Nov 22, 2005 at 21:59 UTC

    Here's what I'm trying now:

    #!/usr/bin/perl
    
    $SIG{CHLD} = "IGNORE";
    fork();
    exec("perl set");

    Is this right? The first program still doesn't seem to continue until the child program finishes... What am I missing here?

        Ah, that explains it. It's working for me now. Thanks very much!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://510928]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found