Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleIF YOU SEE THE ERROR "curl: option --netrc-file: is unknown"

When running the script, if you get the error

Code Block
curl: option --netrc-file: is unknown

this means the curl command is not recognizing the option --netrc-file. 

The --netrc-file option was added in curl version 7.21.5.  You can check your version of curl by running the following command:

Code Block
languagebash
curl -V

If your version of curl is less than 7.21.5, you need to update curl.  

If you have .netrc already set up with your login credentials, you may be able to get the script to work without updating curl by removing the following from the command line:  --netrc-file "$netrc"


Related articles
How To Access Data With cURL And Wget

...