开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜