Hi Thomas,
I fixed the infinite lopp when the interpreter has no input. It now
stops after
10 attempts within short time (to distinguish that from ^D typed by the
user).
Deamon mode (-d) simply fork()s the process of the APL interpreter with the
parent process exit()ing and the child continuing the APL interpreter.
Normally
the terminal remains connected to the parent process so that the child
process
may have no input (which then ran into the endless loop because the
child tried
to get input again and again).
To avoid the child having no input, you need to provide that in addition
to the -d flag,
usually by providing an ,apl script file like this:
apl -d -f script.apl or
apl -d < script.apl or
cat script.apl | apl -d -f -
A script.apl file can be written with a normal text editor or
with the )DUMP command.
/// Jürgen
On 03/10/2014 05:01 PM, baruc...@gmx.com wrote:
Hi,
I tried to figure out how to enable the daemon mode and how to use it,
but with no success; first of all, does it work? Each time I try to
enable it, I have an infinite loop with the )OFF message.
Regards,