Hi Kacper, cool, thanks. Didn't know that trick. /// Jürgen On 08/18/2018 08:17 PM, Kacper Gutowski
wrote:
On Sat, Aug 18, 2018 at 02:14:35PM -0300, Hudson Flavio Meneses Lacerda wrote:How to run a subprocess in background (like system("foo &") in GNU Octave)?I have tried: )HOST gv file.ps &With )HOST you can do it like that: )HOST gv file.ps >&- & )HOST uses popen(3) to capture and return command's output rather than just spawning spawning it with system(3). The & at the end works just fine in a sense that the shell interpreting the command doesn't wait for it and exits, but it doesn't close the standard output and )HOST waits for that. You can explicitly close it with >&-. -k |
- [Bug-apl] async syscall Hudson Flavio Meneses Lacerda
- Re: [Bug-apl] async syscall Juergen Sauermann
- Re: [Bug-apl] async syscall Hudson Flavio Meneses Lacerda
- Re: [Bug-apl] async syscall Kacper Gutowski
- Re: [Bug-apl] async syscall Juergen Sauermann