title: how to handle ftp response code within bash script
body: <p>I am writing a bash script to do automated FTP file transfer. 
       does anyone know how to handle ftp response codes in bash script ? for example ,If I want to handle the response code 530 - Not logged in  , how can i do it ?</p>