bash - curl returns error (6) occasionally -
I have a script that downloads some files from an FTP file. The problem is that sometimes the curl returns error 6 (the host can not resolve) randomly! I can open the FTP through a web browser without any problem. I have also noticed that the first of all errors are errors first. Any ideas?
In addition, I should know that when these errors occur, how can I curl to download again
I used the code:
  curl -m 60 --therith 10 - delay-delay 10 - FTP-method multicwd -C - FTP: // some_address / some_file --output ./some_file   < P> Note: I also tried without code - multicwd  OS: CentOS 6.5 64bit
  while ["$ ret" = "0"]; Curl [your options]; Retired = $ ?; Sleep 5; Done  
Comments
Post a Comment