1. Re[2]: Read program from standard input

I want to do:

  bzip2 -cd cth.ex.bz2 | ex

so I needn't to make a temporary file.

Or I can hide the source by outputting the program direcly
to ex.exe.

Will it featured in 2.3 ?
_____________________________________________________________________

D> Hi Aku,
D> you are correct. EX only runs the file that is on its command line. It never
D> reads from STDIN to get the program source code text.

D> But why do you want to do this?

>> I tried:
>>
>>   ex < cth.ex

D> why not just do ...

D>    ex cth.ex

D> ????
D> Derek.

D> ----- Original Message -----
D> From: <aku at inbox.as>
D> To: "EUforum" <EUforum at topica.com>
D> Sent: Wednesday, October 17, 2001 10:46 PM
D> Subject: Read program from standard input


>>
>> I can not execute an eu program using ex but the
>> program is taken from standard input.
>>
>> I tried:
>>
>>   ex < cth.ex
>>   type cth.ex | ex
>>
>>   ex con < cth.ex
>>   type cth.ex | ex con
>>
>> but fails.
>>
>> How can I do that?
>>
>> Thanks!
>>
>>

new topic     » topic index » view message » categorize

2. Re: Re[2]: Read program from standard input

Aku writes:
> I want to do:
>
>  bzip2 -cd cth.ex.bz2 | ex
> ...
> Will it featured in 2.3 ?

When ex is running, standard input goes to the 
Euphoria program as file number 0. e.g. getc(0).
The interpreter can't simultaneously use standard input 
to read your source code, especially when reading the source
and executing are mixed together.

The bind/shroud programs will let you conceal your source.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu