Q

Run FTP in batch

We have a requirement to run FTP in batch, but with the facility to test the FTP return codes (as with interactive FTP) as and when they occur, and to take corrective or alternate action depending on the FTP return codes. From what I can see, both interactive and batch FTP uses the same 'FTP Kernel'. Do you know where I can find the specifications for this 'kernel'?

If I'm not mistaken, it was originally based on the same as all the other FTP kernels -- RFC 959 published in 1985. There are FTP API's located in the Information Center. You can also over ride the file output in a batch routine to a flat file. After you run your FTP script, you can read that file to check for your FTP error codes and run recovery routines accordingly. Tim Granatir wrote some pretty nice tips on FTP resources on the...

site. Search for FTP tips on the Search400.com site and you will see them.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your OS/400 questions -- or help out your peers by answering them -- in our live OS/400 discussion forums.

Ask the Experts yourself: Our OS/400 gurus are waiting to answer your questions.

Check out this Search400.com Featured Topic: Top 10 expert tips for OS/400

This was first published in July 2003

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

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:

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close