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 21:13:25 -0800
From: "Harry Motin" <hmotin@sbcglobal.net >
Reply-To: scoug-help@scoug.com
To: < "scoug-help@scoug.com" > scoug-help@scoug.com >
Subject: SCOUG-Help: Invoking OS/2 command file from within OS/2 REXX file

Content Type: text/plain

Bill,
The other thing you can do here is run the OS/2 command file (I assume you mean here
an OS/2 batch file, normally run from an OS/2 commandline), using the OS/2 "CMD"
command. Again, because you are in REXX, you have to enclose the OS/2 command
within quotations (I did not make this up; the REXX user guide plainly states that you
have encase any OS/2 command inside quotes; the REXX interpreter will pass that
command on to the OS/2 environment for processing, instead of trying to process the
command itself).

So for example:

Commandline = 'CMD /C ""C:\UTIL\MY_BATCHFILE.CMD""
INTERPRET "Commandline"

The above two (2) lines, when placed in a REXX script, open an OS/2 command line (a
command processor) and run the batch file, MY_BATCHFILE.CMD.

As I recall, there is a slight difference in REXX, using the OS/2 "CMD" command versus
the OS/2 "START" command. If you use "START", the REXX interpreter will continue
processing any remaining REXX commands after you invoke "START". However, if
you use "CMD", the REXX interpreter will stop after invoking "CMD". You then have to
close that commandline (command processor) for your REXX script to continue
processing any remaining REXX commands.
HCM

On Sun, 3 Dec 2006 15:41:17 -0800, Harry Motin wrote:

>On Sun, 3 Dec 2006 15:04:51 -0800, Bill Eaglet wrote:
>
>>How can I invoke an OS/2 (non REXX) command file from within
>>an OS/2 REXX command?
>
>
>Use the OS/2 START command. For example:
>
>/*Begin starting the TimeKeeper/2 clock and the Internet Connection Dialer,
TCPDIAL.EXE*/
>/*Begin starting the TimeKeeper/2 clock*/
>CommandLine = 'START "Time Keeper" /PGM /PM
"C:\UTILITIES\Time_Utilities\TIMEKEEPER!2\TIMEKEEP.EXE"'
>INTERPRET "CommandLine"
>CALL SysSleep 1 /*Wait 1 second until TimeKeeper/2 finishes opening*/
> /*After 1 second the Internet Connection Dialer will have the
focus*/
>/*End starting the TimeKeeper/2 clock*/
>
>
>I lifted the above from an old REXX script that I used to start Netscape Navigator with
my dialup service. I wanted the "Timekeeper!2 utility program to run concurrently
>with Netscape.
>HCM
>
>
>
>
>=====================================================
>
>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".
>
>=====================================================
>
>
>

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

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.