The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > Linux
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 03-10-2008
sysgate's Avatar
sysgate sysgate is offline
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,213
status will be 0, simply because the command succeeded - even if you do "ftp server" and then break with Ctrl^C status will still be 0. You should instead check for the existance of the transfered files with "ls", verify they are on the remote location and then delete the files.
Reply With Quote