Menu Bar

CMDRESP: Issue a Windows NT command and get the response


The REXX interpreter that is included with the Windows NT version of CA-Automation Point doesn't include an implementation of the RXQUEUE filter, which can be used to issue an NT command and place the output on the REXX stack. You can use "redirection" to place the output of a command in a temporary file, then read the file. Rather than to include this more complex logic in individual REXX programs, the CMDRESP external subroutine was developed.

CMDRESPQ.CMD is a short example showing how to call CMDRESP.

Browse the CMDRESP source code



Download zipped version of the above files


Note: This sample is provided "as-is", and no warranty is provided by ProTech. Use at your own risk! However, feedback on this sample is welcomed by the author! E-mail address: bstark@protechpts.com