Quote:
Originally Posted by Z038
There are a couple of SSH options available for the z/OS mainframe, but they may not be set up at your shop. IBM has a port of openssh available that can run under Unix Systems Services on z/OS. It's not installed or configured by default. Tectia has a mainframe ssh server product, and there are a couple of others out there. But none of that helps you if it's not available on your mainframe.
FTP can't initiate a shell script on the Unix/Linux side, but z/OS does have a native rexec client that can initiate a script via your rexecd server, if you are running one. rsh is also available.
You could add a final job step to your mainframe batch job to invoke rexec, if you are running the rexec server on the *nix side. If you don't, then your final step could ftp a file to your Linux system, and you could watch for it via the inotify interface.
|
i'm not familiar with rexx so it will take some studying to craft something together.
my company is stuck in the stone-age and refuse to
upgrade to anything more streamlined and vastly more secure (established business procedures usually win). so we are always stuck trying to backwards hack things that werent designed to be automated.
e.g.:
http://www.linuxquestions.org/questi...ow-4175477022/
+1 thanks, i never known about any ssh options for the mainframe. i will discuss with my manager since there are many production jobs with financial data that use system-id's/passwords to ftp to other locations.
Quote:
Originally Posted by syg00
This is about as bizarre a thread as I would expect to see here. You can submit JCL and get the output back automatically; see here.
I might expect this from a (z)linux instance - but I guess you could do it from OMVS.
|
thanks it worked for some of the jobs but one of them runs for more than an hour so it times out. i am unable to add something like
jesputgetto 4000 to
ftp.data (the last change to the file was in 2006 and the user-id is no longer here).
i will
bash something together having it upload a jcl via ftp having it run it automatically. then ftp every minute to get a
dir listing/status of the job then go to the next job when complete.