View previous topic :: View next topic
|
Author |
Message |
deybumba_2k
New User
Joined: 09 Jan 2006 Posts: 17
|
|
|
|
Hello All,
I have a requirement of executing a Unix Shell Script in an Unix environment from Mainframe. So let's say the Mainframe will submit a job which will kick off a shell script in an Unix server.
Can this be done?
Thanks,
Subha |
|
Back to top |
|
|
Kjeld
Active User
Joined: 15 Dec 2009 Posts: 365 Location: Denmark
|
|
|
|
TWS scheduling tool on z/OS can be set up to communicate with a TWS agent on a Unix server, and start shell scripts as a TWS operation.
That's one way to do it. You should talk to your production service planners to learn if it is a possibility on your installation. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
What's the relationship between the two? Is this shell script on a z/OS Unix Systems Services (USS) partition that can be directly accessed? If not, does your job scheduling system handle batch processing across the entire enterprise? If not, do both systems support the use of the Unix orexec/rexec command? If not then what do you have that connects these two together somehow? |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
I have a requirement of executing a Unix Shell Script in an Unix environment from Mainframe. So let's say the Mainframe will submit a job which will kick off a shell script in an Unix server.
Can this be done? |
Yes -- assuming that your site support group has set up the appropriate pieces of TCP/IP. Find the Communications Server bookshelf and do a find for REXEC. |
|
Back to top |
|
|
Kjeld
Active User
Joined: 15 Dec 2009 Posts: 365 Location: Denmark
|
|
|
|
This applies only to UNIX environments on a z/Series mainframe?
The OP didn't specify what kind of server would host the targeted UNIX environment? |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Quote: |
TWS scheduling tool on z/OS can be set up to communicate with a TWS agent on a Unix server, and start shell scripts as a TWS operation
|
Quote: |
The OP didn't specify what kind of server would host the targeted UNIX environment?
|
And? |
|
Back to top |
|
|
Kjeld
Active User
Joined: 15 Dec 2009 Posts: 365 Location: Denmark
|
|
|
|
PeterHolland wrote: |
Quote: |
TWS scheduling tool on z/OS can be set up to communicate with a TWS agent on a Unix server, and start shell scripts as a TWS operation
|
Quote: |
The OP didn't specify what kind of server would host the targeted UNIX environment?
|
And? |
Here is more information on TWS scheduling operations on remote UNIX systems.
I have also found an IBM online presentation on agentless TWS scheduling
My site uses the TWS agent method to automatically sequence and schedule operations on s/Series servers running UNIX from a z/OS TWS server.
You should still talk to your site support people to see if this could be a solution to your requirements. |
|
Back to top |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
I *think* REXEC sends info, including passwords, in clear text. A better option would be SSH. |
|
Back to top |
|
|
deybumba_2k
New User
Joined: 09 Jan 2006 Posts: 17
|
|
|
|
There is a relationship between the 2 system and they support REXEC. I also saw that REXEC can execute a shell script in a remote Unix server from Mainframe.
Can anybody provide any example of REXEC?
Thanks,
Subha |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
The simplest example I have of REXEC is:
Code: |
//REXEC EXEC PGM=REXEC,
// PARM=('/jcap2 /jcap2/mse/DaveTemp/MerlinToProcess')
//SYSTSPRT DD SYSOUT=*
//NETRC DD *
MACHINE jcap2 LOGIN mgr PASSWORD xxxxxxx
/*
//SYSPRINT DD SYSOUT=*
// |
|
|
Back to top |
|
|
|