Re: run and release?

[email protected] (ToddAndMargo via perl6-users) Wed, 5 Nov 2025 03:14:20 -0800
Newsgroups perl.perl6.users
Message-ID <[email protected]>
On 11/3/25 10:58 PM, ToddAndMargo via perl6-users wrote:
> Hi All,
> 
> In years of yesteryear when I was an automated Test engineer
> running Pascal, I wrote a program that released several
> other programs of my doing to run various tests on numerous
> test beds.  My main program would watch to see if the child
> process were finished and if so gather information.
> 
> Now I see with search.brave.com's AI, that Proc.exitcode
> can be used to check to see it an external process is
> complete:
> 
> https://search.brave.com/search? 
> q=raku+exitcode&source=web&summary=1&conversation=ec8afd654b7e77860b84ea
> 
>      The exitcode method in Raku's Proc class returns the exit
>      code of an external process, or -1 if the process has not
>      yet exited
> 
> I can not see me doing anything like this in my near or distant
> future, but based on my prior history, I am just danged curious
> how "run" can spawn and release an external program.
> 
> Anyone know how do do this?
> 
> -T


I am thinking that you can not from the run command.

I do believe that Proc::Async is the way to do this:

https://docs.raku.org/type/Proc/Async

And it is way over my head.