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
I heard a rumour that Horst Kiehl <firstname.lastname@example.org> said:
>> 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<email@example.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
The caret (shift-6) "hat" is the escape character.
so try 'md5 -s^<firstname.lastname@example.org^>test'
You need to escape semi-colons, commas, etc as well.
* * *
* /\__O__/\ * Jim Simmons, Lower Hutt, New Zealand
/ / *\ email@example.com
* \// * __o o
\\ ____/\o__ _ |/<_ <\
\\ TriNZ (_)| (_) / >