1. EUPHORIA improvement request

------=_NextPart_000_000E_01BD6141.F43CDD80
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi!
I'd like to suggest an improvment to the "system" call in Euphoria.

It's very nice to use EUPHORIA as a batch super-processor, but is not =
trivial to catch the standard output.
Some of the OS commands (i.e. date) have an alternate command inside EU. =
But user programs have to pass the output via a disk file.
It would be very nice if we could write something like:

    myOutput =3D system("Myprog")

where myOutput would be a sequence with the stdout of the called =
program.

So we could write something like

   MyEnv =3D system("set")

and find out the names of all defined variables in the environment... I =
can think of many uses.
Jesus.

------=_NextPart_000_000E_01BD6141.F43CDD80
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.2106.6"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>Hi!</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>I'd like to suggest an improvment to =
the=20
&quot;system&quot; call in Euphoria.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>It's very nice to use EUPHORIA as a batch =
super-processor, but=20
is not trivial to catch the standard output.</FONT></DIV>
<DIV><FONT size=3D2>Some of the OS commands (i.e. date) have an =
alternate command=20
inside EU. But user programs have to pass the output via a disk=20
file.</FONT></DIV>
<DIV><FONT size=3D2>It would be very nice if we could write something=20
like:</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>&nbsp;&nbsp;&nbsp; myOutput =3D=20
system(&quot;Myprog&quot;)</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>where myOutput would be a sequence with the stdout =
of the=20
called program.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>So we could write something like</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>&nbsp;&nbsp; MyEnv =3D =
system(&quot;set&quot;)</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>and find out the names of all defined variables in =
the=20
environment... I can think of many uses.</FONT></DIV>

------=_NextPart_000_000E_01BD6141.F43CDD80--

new topic     » topic index » view message » categorize

2. Re: EUPHORIA improvement request

At 09:54 AM 4/6/98 +0200, Jesus wrote:
>Hi!
>I'd like to suggest an improvment to the "system" call in Euphoria.
>
>It's very nice to use EUPHORIA as a batch super-processor, but is not
trivial to catch the standard output.

>It would be very nice if we could write something like:
>
>    myOutput = system("Myprog")
>
That is a really nice addition! I'm not sure whether it is possible to
capture the standard output from DOS, but if so, it would be handy indeed.

Irv

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

3. Re: EUPHORIA improvement request

Tcl/tk works that way...
And is *really* useful.

For instance, you could use Euphoria as a kind of "glue" for executable
programs you don't have the source.
Processing the stdout would allow you to integrate them into an upper
functional block.

Jesus.

>That is a really nice addition! I'm not sure whether it is possible to
>capture the standard output from DOS, but if so, it would be handy indeed.
>
>Irv

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

4. Re: EUPHORIA improvement request

> Tcl/tk works that way...
> And is *really* useful.

And ... dare I say it? ... so does Perl. smile
Another functionality area that's not too hard to implement, since I'd
bet that even though Perl's interpreter is no slouch, Euphoria probably
beats it speed-wise.

--
Cameron Kaiser * spectre at sserv.com * http://www.sserv.com/
--
Visit the leading Internet starting point today!
http://www.sserv.com/
--

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

5. Re: EUPHORIA improvement request

What would be good is to have a device to redirect system calls
exampe: system "echo %eudir%>EU1:"
                MyDirectory=EUPHORIA_DEVICE()




NEW! HTTP://www.geocities.com/SiliconValley/Lab/7577
Michael J Raley's Modular Reality Journal
-----Original Message-----
From: Cameron Kaiser <spectre at WWW2.BUOY.COM>
To: Multiple recipients of list EUPHORIA <EUPHORIA at MIAMIU.ACS.MUOHIO.EDU>
Date: Monday, April 06, 1998 7:53 AM
Subject: Re: EUPHORIA improvement request


>> Tcl/tk works that way...
>> And is *really* useful.
>
>And ... dare I say it? ... so does Perl. smile
>Another functionality area that's not too hard to implement, since I'd
>bet that even though Perl's interpreter is no slouch, Euphoria probably
>beats it speed-wise.
>
>--
>Cameron Kaiser * spectre at sserv.com * http://www.sserv.com/
>--
>Visit the leading Internet starting point today!
>http://www.sserv.com/
>--
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu