EUPHORIA improvement request
- Posted by JesusC - Jesus Consuegra <jconsuegra at REDESTB.ES> Apr 06, 1998
- 768 views
------=_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 "system" call in Euphoria.</FONT></DIV> <DIV> </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> </DIV> <DIV><FONT size=3D2> myOutput =3D=20 system("Myprog")</FONT></DIV> <DIV><FONT size=3D2></FONT> </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> </DIV> <DIV><FONT size=3D2>So we could write something like</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2> MyEnv =3D = system("set")</FONT></DIV> <DIV><FONT size=3D2></FONT> </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--