Using an FTP script to send a text file from AIX to AS/400
ISeries PC/Windows connectivity expert Shahar Mor explains how to send a text file from an AIX machine on Linux to a remote AS/400.
- Start FTP server on AS/400 using the STRTCPSVR *FTP command
- Obtain the AS/400 details (user, password, name, address)
- Use LFTP. It is sophisticated file transfer program with a command-line interface. For example, the following will send file zz.text. The variables are:
- $FTPU is FTP user
- $FTPP is user password
- $FTPS is AS/400 address and name
lftp -u $FTPU,$FTPP -e "cd qgpl; mput /dir /zz.txt; quit" $FTPS
Continue Reading This Article
Enjoy this article as well as all of our content, including E-Guides, news, tips and more.
A description for LFTP can be obtained here
Dig Deeper on FTP
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.
Meet all of our AS/400 experts
View all AS/400 questions and answers
Start the conversation
0 comments