Ask the Expert

An FTP script to get a file from a PC to AS/400

I am unfamiliar with FTP. I need to get a file from my PC to AS/400. Do you have an example of the script?
It is very easy. Your FTP script reads a text file (i.e. script.txt) that looks like this:

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: