The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-19-2003
frustrated1 frustrated1 is offline
Registered User
  
 

Join Date: Aug 2003
Location: Ireland
Posts: 278
Unhappy Incorrect Exit Status Returned from FTP command - Help??

I am trying to perform some error handing within a Korn sheel script whilst FTPing a file from one server to another..

The exit status is correctly set to zero, if my script connects to the other server and sends the file..

However, if for whatever reason other than a timeout the script cannot connect to the other server, the exist status is still set to zero.. which is incorrect.

Are there are better ways to check to see if FTP was sucessful or not??