Re: Is there a way to spawn a program from perl that is independent?

On Aug 4, 5:44 am, "Peter J. Holzer" <hjp-usen...@xxxxxx> wrote:
On 2008-08-04 04:16, comp.lang.c++ <c...@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:

In Unix, you could background the other script in
a subshell:

0 == system "(/path/to/other_script &)"
or die "system failed: $?";

But getting the return status of the backgrounded
task would be messy

If you use open with mode '-|' or '|-' it isn't messy at all: close
returns the return status. It also avoids the additional shell. You need
to take care about the input or output, which may add some

True. I was just guessing from the OP's description "throw off
script and go on with its business", he just wanted a "spawn and
type background action. (with no interaction and possibly no concern
about status as well),

Charles DeRykus
Charles DeRykus