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 editing the script and removing the following from the curl command line:  --netrc-file "$netrc"

Info
titleHOW TO GET WGET

If you do not have wget:
  - Windows users can download it at https://eternallybored.org/misc/wget/
  - Mac OS X users can install it using Homebrew (https://brew.sh) using the command `brew install wget`
  - Additional information on wget is available at https://www.gnu.org/software/wget/faq.html


Related articles
How To Access Data With cURL And Wget

...