bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] async syscall


From: Hudson Flavio Meneses Lacerda
Subject: Re: [Bug-apl] async syscall
Date: Sat, 18 Aug 2018 18:25:31 -0300

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 <address@hidden> wrote:

> 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
> executed directly (like in )HOST or 100 ⎕SVO).
> 
> Yet another possibility is a shell script (#!/bin/bash ...) inside
> which the process is being backgrounded and call that script with
> )HOST.
> 
> /// Jürgen
> 
> 
> On 08/18/2018 07:14 PM, Hudson Flavio Meneses Lacerda wrote:
> Hi.
> ⎕FIO[25]u
> 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
> 
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]