|
Posted by comp.lang.c++ on August 4, 2008, 3:14 pm
Please log in for more thread options >
> > 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
> complications.
>
True. I was just guessing from the OP's description "throw off
another
script and go on with its business", he just wanted a "spawn and
forget"
type background action. (with no interaction and possibly no concern
about status as well),
--
Charles DeRykus
Charles DeRykus
|