My problem: I realized open3 returns the pid only at closure.
If you add an & to the end of your command, it will be run asynchronously and open3 will be able to return the pid to you immediately.
You would need to add a shell into the mix though.
In reply to Re: How to catch that pid?
by BrowserUk
in thread How to catch that pid?
by mudMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |