bug-apl
[Top][All Lists]
Advanced

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

Re: APL: GNU: How to output to a file?


From: Dr . Jürgen Sauermann
Subject: Re: APL: GNU: How to output to a file?
Date: Mon, 29 Aug 2022 11:25:33 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

Hi Knud,

GNU APL prints to stdout and stderr like all other "normal" programs.

It might be, though, that under non-normal operating such as WINDOWS
the output gets lost for some reason.

I suppose that the shell used (e.g. cmd.exe vs. the cygwin shell) might
make a difference in that respect. The following works just fine in GNU/Linux:

eedjsa@server68:~/apl-1.8$
eedjsa@server68:~/apl-1.8$
eedjsa@server68:~/apl-1.8$
eedjsa@server68:~/apl-1.8$ cat test.apl   # prints ⍳10

⍳10
)OFF


eedjsa@server68:~/apl-1.8$ apl -s -f ./test.apl  > test.output
eedjsa@server68:~/apl-1.8$ cat test.output
1 2 3 4 5 6 7 8 9 10

eedjsa@server68:~/apl-1.8$
eedjsa@server68:~/apl-1.8$


Best Regards,
Jürgen


On 8/28/22 8:47 PM, knud van eeden wrote:
Hello,

1. apl.exe has a parameter to input a file.

2. E.g.

apl.exe -f youraplfilenamehere

E.g. 

 apl.exe -f helloworld.apl

3. But how to get the output of it?

4. There seems to be no command line parameter to set output to a file (run e.g. apl.exe --help to see and check that).

5. Also something like pipe '>' to a file gives no results.

E.g.

 apl.exe -f helloworld.apl >youroutputfilename

Can you please advise?

Thanks
with friendly greetings
Knud van Eeden





reply via email to

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