bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] working with )HOST


From: Christian Robert
Subject: Re: [Bug-apl] working with )HOST
Date: Fri, 4 Mar 2016 22:03:57 -0500
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

I think you will have to "fflush()" the stream *before* it will be available in 
any )host command


Zi ← ⎕FIO[16] Bh fflush(Bh)

( From ⎕FIO '' )

Xtian.


On 2016-03-04 21:54, address@hidden wrote:
Hi Bug-apl,

Currently, at a point in my code I do something like this:

⍝assume the variable 'yadda' exists and is correctly formed, as well as the 
read_file function
success←yadda ⎕fio[7] tie← 'wr'⎕FIO[3] "yadda.file"
)host ./shellscript.sh <http://shellscript.sh> yadda.file yadda.file.new
yadda_new← read_file "yadda.file.new"
⍝end of code

My question is: is there either 1. a way to feed )host a variable (I don't 
think that is possible) or 2. a better way to implement this task in its 
entirety. I find it a small nuisance that I have to write and then read a file 
in my code to access non-APL stuff for processing.

-Alex



reply via email to

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