Start New Discussion within our Software Development Community

Hi I have written the below code for ftp transfer. can u please help me how to trap whether it is successful or not.

ftp -n `awk '$1 ~ /db_server_IP/ { print $3 }' $CONFIG_FILE` <<END
quote USER `awk '$1 ~ /db_user/ { print $3 }' $CONFIG_FILE`
quote PASS `awk '$1 ~ /db_password/ { print $3 }' $CONFIG_FILE`
`awk '$1 ~ /db_file_mode/ { print $3 }' $CONFIG_FILE`
cd `awk '$1 ~ /db_file_path/ { print $3 }' $CONFIG_FILE`
get `awk '$1 ~ /db_file_name/ { print $3 }' $CONFIG_FILE`.tar.gz
quit
END
This question has already been answered. Start a new discussion instead.