1. A curse on Euphoria ?

I've always enjoyed Euphoria as a nice simple language that does what it
is told simply and well. When forced to programme in EvilC-- as part of my
course it was always my point of refuge, the maintainer of my sanity -
there is such a thing as a programming language that makes things easier
rather than harder...

My bubble just burst.

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 ?

thanks

Daniel

--
Today's Proverb :
When words are many, sin is not lacking; so he who controls his speech is wise
(10v19)

Daniel Johnson               Engineer, smartypants and clown
Jesus College, Cambridge     all at a very reasonable price
dpj22 at cam.ac.uk
zeus.jesus.cam.ac.uk/~dpj22  talk dpj22 at jewish.jesus.cam.ac.uk

new topic     » topic index » view message » categorize

2. Re: A curse on Euphoria ?

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 message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu