On 10/24/2015 10:06 AM, Gabor Szabo wrote:
> I am trying to test the Perl6::Maven web application by launching the
> full application (which is uses Bailador) and then accessing the pages
> using LWP::Simple.
> 
> 
> Unfortunately so far I could not figure out how to launch an external
> program in the background
> or how to fork an exec ?
> 
> I tried QX{"command &") but it waited till the command finished.
> I tried run(), but that insisted I pass each argument as a separate value
> 
> my $p = run("/usr/bin/perl", "-V", :out);

There's a shell() function that might be closer to what you want, if you
don't want to pass each argument separately.

There's also Proc::Async: http://doc.perl6.org/type/Proc::Async

But to me, it also looks like a perfect use case for threads. Have you
tried that?

Cheers,
Moritz

Reply via email to