开发者

how to handle ftp response code within bash script

开发者 https://www.devze.com 2023-03-22 13:52 出处:网络
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 53

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消