How can I get an error code that indicates something went wrong with
the FTP step in a script?
For example, in the following script...
ftp -i -n asapas4 <<HERE
put mydata
quit
HERE
echo $?
echo always prints a zero even though host asapas4 doesn't exist.
Thanks.