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.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论