LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-06-2014, 11:21 AM   #16
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918

Quote:
Originally Posted by Z038 View Post
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 View Post
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.

Last edited by schneidz; 04-06-2014 at 11:28 AM.
 
Old 04-07-2014, 07:05 AM   #17
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,668
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
Get familiar with REXX!

It's actually a sweet little language, and powerful as hell.
 
Old 04-07-2014, 06:11 PM   #18
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
i got my script running but takes a while because it sleeps for an hour while a websphere queue is drained.

is there some magical way one can get the current queue depth from a queue in mqm while logged in via ftp ?
 
  


Reply

Tags
cron



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cron jobs execution order chicken76 Linux - Newbie 2 04-20-2013 06:16 AM
commands to be executed in order for a batch jobs! faizlo Programming 11 01-26-2009 04:43 AM
Which version of Debian linux run over z9EC Mainframe server sivapoorna Linux - Newbie 2 04-17-2008 01:31 PM
Which version of Debian linux run over z9EC Mainframe server sivapoorna Debian 1 04-17-2008 06:57 AM
Which version of Debian linux run over z9EC Mainframe server sivapoorna Linux - Server 1 04-17-2008 04:41 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration