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!