how to handle ftp response code within bash script
I am writing a bash script to do automated FTP file transfer. doe开发者_如何学JAVAs 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 ?
I'd recommend you use a different language with a well-tested FTP library: Perl, Ruby, Python. These libraries will make it simpler to retrieve the response codes.
I once wrote an Expect script to do FTP automations, but then I realized I'd wasted a lot of time.
精彩评论