AS/400 to UNIX jobs

AS/400 to UNIX jobs

Post by Richard Whi » Thu, 14 Mar 1996 04:00:00




Quote:>I need to start a job on a UNIX (HP-UX) machine from a job running in batch on
>an AS/400.
>So far I've managed to send a file using the STRTCPFTP command and by
>over-riding the INPUT to a text fil. Unfortunately the TELNET and STRTCPTELN
>commands will not work within a CL batch job.

>Has anyone any ideas??

>TIA
>Mike Collings

Mike,

If you can find a way of redirecting the TELNET session input /output to source
files as per FTP, then you might try changing the TELNET command (CHGCMD
command) so that it can run in batch program mode (*BPGM).

However, one way which I know will work is to send a message (from OV/400 to
SMTP on the Unix box) which can be monitored for by a Unix program.  Just how
the program is written in C I don't know - but presumably your Unix programmers
can take care of this.

Likewise, on completion of the Unix task, an e-mail could be sent back to signal
the AS/400 task that it can continue (that's if it needs to execute the Unix task
in-line).

Regards,
Richard

 
 
 

AS/400 to UNIX jobs

Post by finne.. » Fri, 15 Mar 1996 04:00:00



Quote:>I need to start a job on a UNIX (HP-UX) machine from a job running in batch on
>an AS/400.
>So far I've managed to send a file using the STRTCPFTP command and by
>over-riding the INPUT to a text fil. Unfortunately the TELNET and STRTCPTELN
>commands will not work within a CL batch job.

>Has anyone any ideas??

>TIA
>Mike Collings

Use the RUNRMTCMD command found in OS/400.  This command is the
client side of the rexecd which should be running on your UNIX box.  

I have gotten this to work between my AS/400 and PC, and it works well.
The only 'tricky' thing for me was that the passwords and such are all
case sensitive, as you would expect.  Well, it was not what I expected as
I was working with the AS/400 and PC which both tend not to be case
sensitive.

Brian R. Smith
ITSO Rochester Center (we make the redbooks)

 
 
 

AS/400 to UNIX jobs

Post by lec.. » Fri, 15 Mar 1996 04:00:00


I was told that there is a command with TCP/IP in V3R1 which is like
RUNRMTCMD or RUNUNXCMD or something like that.

In V2 there is an IBM program 5798-RZB Connection Program for Unix
Environments which provides a STRUNXCMD command which runs only for
AIX, HP-UX and Sun Solaris.



>>I need to start a job on a UNIX (HP-UX) machine from a job running in batch on
>>an AS/400.
>>So far I've managed to send a file using the STRTCPFTP command and by
>>over-riding the INPUT to a text fil. Unfortunately the TELNET and STRTCPTELN
>>commands will not work within a CL batch job.

>>Has anyone any ideas??

>>TIA
>>Mike Collings
>Mike,
>If you can find a way of redirecting the TELNET session input /output to source
>files as per FTP, then you might try changing the TELNET command (CHGCMD
>command) so that it can run in batch program mode (*BPGM).
>However, one way which I know will work is to send a message (from OV/400 to
>SMTP on the Unix box) which can be monitored for by a Unix program.  Just how
>the program is written in C I don't know - but presumably your Unix programmers
>can take care of this.
>Likewise, on completion of the Unix task, an e-mail could be sent back to signal
>the AS/400 task that it can continue (that's if it needs to execute the Unix task
>in-line).
>Regards,
>Richard

Marc RAUZIER
Sorry for my english, but it's difficult for me, poor frenchie.
 
 
 

AS/400 to UNIX jobs

Post by Chri » Sat, 23 Mar 1996 04:00:00


:> Use the RUNRMTCMD command found in OS/400.  This command is the
:> client side of the rexecd which should be running on your UNIX box.  

:> I have gotten this to work between my AS/400 and PC, and it works well.
:> The only 'tricky' thing for me was that the passwords and such are all
:> case sensitive, as you would expect.  Well, it was not what I expected as
:> I was working with the AS/400 and PC which both tend not to be case
:> sensitive.

:> Brian R. Smith
:> ITSO Rochester Center (we make the redbooks)

 The only problem with this method is that any unix box running the
rexecd daemon is the source of a security hole (as are running the
netstat,systat,tftp and finger daemons).

Chris

--

Staffordshire University School of Computing, Stafford, United Kingdom.
70. Corporation Street, Stafford, Staffs., ST16 3LT (+44) (0)1785 226195.