I am currently creating an overnight job that calls a Unix script which in turn creates and transfers a file using `ftp`. I would like to check all possible return codes. The man page for `ftp` doesn't list return codes. Does anyone know where to find a list? Anyone with experience with this? We have other scripts that grep for certain return strings in the log, and they send an email when in error. However, they often miss unanticipated codes.
I am then putting the reason into the log and the email.