Date: Mon, 5 Feb 1996 00:01:13 +1300
Reply-To: REXX Programming discussion list <REXXLIST@UGA.CC.UGA.EDU>
Sender: REXX Programming discussion list <REXXLIST@UGA.CC.UGA.EDU>
From: Jim Simmons <jim@SIMMONS.ACTRIX.GEN.NZ>
Organization: Upstairs in the West Wing
Subject: Re: OS/2 REXX: How can I use '<' and '>' in input and output
arguments.
I heard a rumour that Horst Kiehl <h.p.kiehl@kfa-juelich.de> said:
>In <4eoj4r$k3p@dfw.nkn.net>,
>jack@cyberloans.com writes:
>
>> I want to call the md5.exe program from OS/2 REXX. I need to be able to
>> include the characters '<' and '>' in the arguments to the md5 program.
>> If I do a
>> /**/
>> 'md5 -s<1996013150293@kf5mg.ttsi.tandem.com>test'
>>
>> The code calls md5, but OS/2 interprests the brackets as stream
>> re-direction characters. Does anyone know of a way around this problem?
>
>Put double quotes around the parameter containing the angle brackets (or
>other command line operators). Add code to the REXX program to remove
>these double quotes if necessary.
>
Yes that will work, but a simpler method is to "escape" the characters
so that rexx will ignore them, then you wont have to worry about
changing md5.
The caret (shift-6) "hat" is the escape character.
so try 'md5 -s^<1996013150293@kf5mg.ttsi.tandem.com^>test'
You need to escape semi-colons, commas, etc as well.
--
* * *
* /\__O__/\ * Jim Simmons, Lower Hutt, New Zealand
/ / *\ jim@simmons.actrix.gen.nz
* \\
* \// * __o o
\\ ____/\o__ _ |/<_ <\
\\ TriNZ (_)| (_) / >
|