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

Re: [Bug-apl] edif update / ⎕IO is 0

2018-08-18 Thread Chris Moller
Hi, Hans-Peter, I'm still trying to figure things out.  At least I think I understand the double-free problem and, thinking about it, that may be a clue to the rest of it. Chris On 18/08/18 15:29, Hans-Peter Sorge wrote: Hello Chris, I have just one process running. I recompiled and

Re: [Bug-apl] edif update / ⎕IO is 0

2018-08-18 Thread Hans-Peter Sorge
Hello Chris, I have just one process running. I recompiled and reinstalled edif to make sure it's the most recent version. During editing with emacs: session is blocked, then in APL session Ctrl C fg 'some data' ENTER  - no response in emacs: save in APL session:    'some data'

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

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

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

[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