>       Is there a way on UNIX to force the execution of an external command
> from the EXEC function to be run in background?

Are you REALY sure you mean exec() ???

>From perldoc -f exec

    exec LIST
    exec PROGRAM LIST
            The "exec" function executes a system command *and never
            returns*-- use "system" instead of "exec" if you want it to
            return. It fails and returns false only if the command does not
            exist *and* it is executed directly instead of via your system's
            command shell (see below).

            Since it's a common mistake to use "exec" instead of "system",
            Perl warns you if there is a following statement which isn't
            "die", "warn", or "exit" (if "-w" is set - but you always do
            that). If you *really* want to follow an "exec" with some other
            statement, you can use one of these styles to avoid the warning:


I believe you could to something like

        system( 'subtask &');
to start the command without waiting for it. You'll need something like 
"nohup" or whatever ... I've not used unix for some time ... to make sure the 
process survives your logout.

Jenda


== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==
: What do people think?
What, do people think?  :-)
             -- Larry Wall in <[EMAIL PROTECTED]>
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to