Re: [Bug-apl] async syscall

2018-08-18 Thread Hudson Flavio Meneses Lacerda
Hi. Thank you, Jürgen and Kacper. The ">&- &" trick is the better solution. Shell script suggestion does not work, and ⎕FIO[24] requires storing the file handles for posterior pclose() call. Best, Hudson On Sat, 18 Aug 2018 20:08:42 +0200 Juergen Sauermann wrote: > Hi Hudson, > > You may wa

Re: [Bug-apl] async syscall

2018-08-18 Thread Juergen Sauermann
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 subproces

Re: [Bug-apl] async syscall

2018-08-18 Thread Kacper Gutowski
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 captur

Re: [Bug-apl] async syscall

2018-08-18 Thread Juergen Sauermann
Hi Hudson, You may want to try ⎕FIO[57] or similar (read: ⎕FIO[24] aka. popen() and ⎕FIO[25] aka. pclose() if the communication with the new process is unidirectional). The & is a shell feature that is not available if a command is

[Bug-apl] async syscall

2018-08-18 Thread Hudson Flavio Meneses Lacerda
Hi. How to run a subprocess in background (like system("foo &") in GNU Octave)? I have tried: )HOST gv file.ps & 100⎕SVO'OS' OS ← 'gv file.ps &' without success. Thanks, Hudson