|
One easy way to do it is to check the log for the text "Cannot connect" before you check for numerical codes. This means that ftp services aren't available because of 1) software not running 2) the server is down 3) the IP address is wrong 4) etc.. Gord Royle Cott Corporation ---------- Original Text ---------- From: Justin Kiteley <justin@asiwms.com>, on 3/7/01 5:20 PM: Hello everyone, Curious to know if there is any way to verufy if a remote host has its FTP server up and running. In a CL batch program I check to see if the host is up by using the ping command and rcvmsg. This works ok, but it does not tell me if the remote system has its FTP server running. I can put some code in to review the FTP log after the transaction to look for any of the standard FTP numerical error msgs, but I'd like to know before I try to send anything if they're FTP is up and running. Any Ideas? Thanks for any help! Justin Kiteley +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- _______________________________________________________________ Cott - The Leader in Premium Retailer Brand Beverage Innovation. _______________________________________________________________ +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com 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].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.