- 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
A description for LFTP can be obtained here
This was first published in March 2008