SCOUG Logo


Next Meeting: Sat, TBD
Meeting Directions


Be a Member
Join SCOUG

Navigation:


Help with Searching

20 Most Recent Documents
Search Archives
Index by date, title, author, category.


Features:

Mr. Know-It-All
Ink
Download!










SCOUG:

Home

Email Lists

SIGs (Internet, General Interest, Programming, Network, more..)

Online Chats

Business

Past Presentations

Credits

Submissions

Contact SCOUG

Copyright SCOUG



warp expowest
Pictures from Sept. 1999

The views expressed in articles on this site are those of their authors.

warptech
SCOUG was there!


Copyright 1998-2024, Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.

The Southern California OS/2 User Group
USA

SCOUG-HELP Mailing List Archives

Return to [ 03 | December | 2006 ]

<< Previous Message << >> Next Message >>


Date: Sun, 3 Dec 2006 12:03:03 -0800
From: "Steven Levine" <steve53@earthlink.net >
Reply-To: scoug-help@scoug.com
To: scoug-help@scoug.com
Subject: SCOUG-Help: Invoking OS/2 command file from within OS/2 REXX file

In <29093-38446@sneakemail.com>, on 12/03/06
at 11:28 AM, "Bob" <2lvvuss02@sneakemail.com> said:

>No need to go to all that trouble.

True enough.

>Just put the program name, and
>possibly any fixed parameters, in quotes and any variables outside the
>quotes.

>/* rexx */
>fromfile = 'c:\XYZ'
>tofile = 'd:\XYZ'
>'copy' fromfile tofile

FWIW, quoting strings is a good thing, but the quotes have nothing to do
with getting the shell to execute the command line. The shell will
execute whatever expression result it receives, which can have interesting
side effects. The quotes are needed only to avoid REXX syntax errors.
For the reckless

/* rexx */
fromfile = 'c:\XYZ'
tofile = 'd:\XYZ'
copy fromfile tofile

will do exactly the same thing.

An example of interesting side effects is long ago someone complained that
their system would intermittently start lotus 123. Turns out they had a
rexx script running in the background that contained the line

somefunc()

and bad luck had it that somefunc returned 123. :-)

Regards,

Steven

--
----------------------------------------------------------------------
"Steven Levine" MR2/ICE 2.67 #10183 Warp/eCS/DIY/14.103a_W4
www.scoug.com irc.fyrelizard.com #scoug (Wed 7pm PST)
----------------------------------------------------------------------

=====================================================

To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-help".

For problems, contact the list owner at
"postmaster@scoug.com".

=====================================================


<< Previous Message << >> Next Message >>

Return to [ 03 | December | 2006 ]



The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA

Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.