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??
|