bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] What is the daemon mode?


From: Juergen Sauermann
Subject: Re: [Bug-apl] What is the daemon mode?
Date: Tue, 11 Mar 2014 15:14:53 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

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, address@hidden 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,





reply via email to

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