Bobby,

You can look at Dovetail Co:z software, open source download.  With it,
you it run on top of ssh for z/OS and allows you to perform sftp to
mainframe data sets.  Very easy to script and then authentication keys can
be used for connection.  I installed this earlier this year for some
PeopleSoft requirements that we had and everything works without issues.

Check it out.

http://www.dovetail.com/





Thanks,

Craig



From:   "Bauer, Bobby (NIH/CIT) [E]" <[email protected]>
To:     [email protected],
Date:   08/30/2013 11:27
Subject:        Bash script for FTP to mainframe
Sent by:        Linux on 390 Port <[email protected]>



Need to write a bash script (RHEL6) to FTP a file to the MVS side of the
mainframe. Love to use SCP but to my knowledge, it only sends to the OMVS
side.
Here is the code with the names changed:

HOST=nih
USER=me
PASS=password
ftp -inv $HOST << EOF
user $USER $PASS
put  something
bye
EOF

and here is the error message.
Connected to nih (xxx.xxx.xxx.xxx).
220-FTPD1 IBM FTP CS V1R13 at nih, 12:03:54 on 2013-08-30.
220 Connection will close if idle for more than 1440 minutes.
Remote system type is MVS.
(username) 331 Send password please.
530 new passwords are not the same
Login failed.

I know the password is correct. I don't know what it is doing/complaining
about when it says the new password is not the same. Anybody know how to
do this?

Thanks
Bobby Bauer
Center for Information Technology
National Institutes of Health
Bethesda, MD 20892-5628
301-594-7474

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/


**********************************************************************
This communication contains information which is confidential and
may also be privileged. It is for the exclusive use of the intended
recipient(s). If you are not the intended recipient(s), please note
that any distribution, copying or use of this communication or the
information in it is strictly prohibited. If you have received this
communication in error, please notify the sender immediately and
then destroy any copies of it.
**********************************************************************

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to