Hi want to trap ftp return code
everything I trap with $? return the AIX code which is always 0 in this case as ftp is always successful

can any one tell me how to trap the return codes of
putting/getting file through ftp.

Thanks in advance.