Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: call unix shell script from MVS ?

Re: call unix shell script from MVS ?

From: John P. Higgins <jh33378_at_deere.com>
Date: Thu, 12 Nov 1998 15:45:27 -0600
Message-ID: <364B56F6.1D284F2@deere.com>


See the following:

//CXREMOT  JOB (-------------------------------),
// MSGLEVEL=(1,1),MSGCLASS=T,PRTY=14,NOTIFY=JH33378
//*EXEC CNTR3
//*MAIN ORG=RMT01,USER=JH33378,CLASS=TSO30
//*
//REXEC1 EXEC PGM=REXEC,
// PARM='somebox.com date'
//SYSPRINT   DD SYSOUT=*
//SYSIN      DD DSN=JH33378.NETRC.DATA,DISP=SHR

The NETRC.DATA dataset is required for REXEC. The format is the same as a unix .netrc file.

The stdout and stderr are listed in the SYSPRINT. In this simple case, it just shows the date/time from the somebox.com.The batch job waits for the finish of the remote job. You can also do this from TSO.

Your systems programmers must have the REXEC enabled on your MVS. The inetd daemon must be running on the unix box and it must be configured for rexec.

There is also a remotesh program that is similar to remsh.

Gopal wrote:

> Hi Folks
> I realize that this query may not be the best question
> for this forum because of its cross platform nature.
>
> However some of the readers may have faced this situation.
>
> I need to call a Unix shell script from an MVS batch file.
> Both the Unix box and the mainframe are on a TCP/IP based network.
> We do FTPin back and forth etc..
>
> Further if a shell script is called from within the batch file
> will it do it in parallel or serial and will it know about
> the success or failure of the unix job ?
>
> Please email your response to gopal_at_astro.ocis.temple.edu
>
> Thank You
> Gopal
Received on Thu Nov 12 1998 - 15:45:27 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US