At 04:29 PM 9/26/97 -0700, you wrote:
>Yes, but FTP can fail for a variety of reasons. The server address is
>wrong, connection timed out, or user id/password not valid, or ANONYMOUS
>not allowed, or the FTP sub commands failed, or the fiels are not
>trasferred ..etc. I need to find out in all these cases I shoudl re try
>the FTP. I think this makes the question more clear. Thanx in advance for
>the help. Good day.


I believe all of these possibilities will be in the FTP log. It will contain everything that you normally see on the screen when you run interactively, so this includes responses from the FTP server, as well as your client messages.

Maybe you can run the process without the override of STDOUT, save the session (I think this is possible), and then analyze what shows up there. You'll then need to cover all possibilities you know of in a program that checks the log after each operation.

There's no way I know of to do this within an FTP script (override for STDIN), so change my comments from 'each operation' to 'each execution of the script'. This is because the 400 does not return control to your program until after the FTP command is completely finished.


+--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to "". | To unsubscribe from this list send email to | and specify 'unsubscribe MIDRANGE-L' in the body of your message. | Questions should be directed to the list owner/operator: +---

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].