Re: A curse on Euphoria ?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Daniel Johnson writes:
> I'm trying to write a CGI script in Eu to concatenate
> web pages and send them as one. It's very simple - just
> take all the cgi post data values in turn and dump them to
> stdout using lynx. To do this I just modified another cgi I
> already had. However it does not work.
> The reason is something to do with Eu using curses to output
> stuff to stdout, such that an Eu cgi script cannot dump
> data into an output page using system().
> Is there a way around this at all ? If not then is a fix possible ?

I'm not sure exactly what statements you are using here.
I tested and found that you *can* write something like:
          system("command > stdout", 2)
or
          system("exu junk.exu > stdout, 2)
from a .exu program, and get the correct stuff sent to stdout.

There is a glitch that I know of.
If your Linux Euphoria program writes stuff to both
stderr and stdout, and you redirect stdout to a file,
stderr will also get redirected to the same file, along with
some curses screen control characters. As I recall, this
is a documented bug in curses, that would be hard
for me to avoid. I  wonder if you were affected by that.

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu