I have all the FTP return codes, but I don't know how to use it to make sure a seccessful FTP transfer. For example:
ftp -ivn <<EOF >resultfile
open username passwd
cd dest_path
put file_name
quit
EOF
Since there will be more than one result code in "resultfile", what can I do to ensure the file has been transferred succesfully?
Thanks in advancd.
ftp -ivn <<EOF >resultfile
open username passwd
cd dest_path
put file_name
quit
EOF
Since there will be more than one result code in "resultfile", what can I do to ensure the file has been transferred succesfully?
Thanks in advancd.