open ftp.mysite.com
User
password
cd as400lib
lcd pcdir
put file
bye
Where user – User on the iSeries
Password – Password on the iSeries
As400lib – Name of AS/400 library
Pcdir – Name of PC directory
File – Name of file to send
Then you could execute it like this:
ftp -s:SCRIPT.TXT
This was first published in March 2008