‘p’ is not recognized as an internal or external command, operable program or batch file when using wget on Windows10
‘p’ is not recognized as an internal or external command, operable program or batch file when using wget on Windows10
Hello~
I want to download all the URLs in a file called http_manifest.txt using Wget on Windows 10. The file was obtained after ordering VIIRS L2 data from NASA Ocean Color. However, when I ran Wget for one URL using this command: wget https://oceandata.sci.gsfc.nasa.gov/cgi/getfile/requested_files_1.tar?h=ocdist309&p=/data1/7060517533972d6a/requested_files, I got an error as bellow:
I wonder what is 'p'? Does anyone know how to fix this issue?
In addition, is it possible to download all URLs in the http_manifest.txt file using wget?
Thank you in advance.
Elaine.
I want to download all the URLs in a file called http_manifest.txt using Wget on Windows 10. The file was obtained after ordering VIIRS L2 data from NASA Ocean Color. However, when I ran Wget for one URL using this command: wget https://oceandata.sci.gsfc.nasa.gov/cgi/getfile/requested_files_1.tar?h=ocdist309&p=/data1/7060517533972d6a/requested_files, I got an error as bellow:
I wonder what is 'p'? Does anyone know how to fix this issue?
In addition, is it possible to download all URLs in the http_manifest.txt file using wget?
Thank you in advance.
Elaine.
- Attachments
-
- 1.JPG (72.09 KiB) Not viewed yet
Filters:
-
- Posts: 396
- Joined: Mon Jun 22, 2020 5:24 pm America/New_York
- Has thanked: 8 times
- Been thanked: 8 times
Re: ‘p’ is not recognized as an internal or external command, operable program or batch file when using wget on Windows1
Can you try the instructions here and let us know if you are able to obtain your files?
https://oceancolor.gsfc.nasa.gov/data/download_methods/#orders_sec
https://oceancolor.gsfc.nasa.gov/data/download_methods/#orders_sec
Re: ‘p’ is not recognized as an internal or external command, operable program or batch file when using wget on Windows1
Thank you for your reply. Yes, I tried the instructions in that website. Specifically, when I ran "wget --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --auth-no-challenge=on --no-check-certificate --content-disposition -i https://oceandata.sci.gsfc.nasa.gov/cgi/getfile/requested_files_1.tar?h=ocdist309&p=/data1/7060517533972d6a/requested_files", I got an error as below:
Do you know how to fix this issue?
Thank you in advance.
Elaine.
Thank you in advance.
Elaine.
Re: ‘p’ is not recognized as an internal or external command, operable program or batch file when using wget on Windows1
Although they don't seem to mention it, the instructions at <https://oceancolor.gsfc.nasa.gov/data/download_methods/> are for linux or macOS and will need extensive changes for use on Windows. In my experience, there are many versions of wget.exe for Windows, but many are
old or otherwise limited and do not work well. The python script does work reliably on Windows.
Note that you should check the name and permissions of your ".netrc" file.
old or otherwise limited and do not work well. The python script does work reliably on Windows.
Note that you should check the name and permissions of your ".netrc" file.
Re: ‘p’ is not recognized as an internal or external command, operable program or batch file when using wget on Windows1
Hi Elaine,
I think you need to configure your username and password for authentication using a .netrc file following the instruction on the following page:
https://oceancolor.gsfc.nasa.gov/data/download_methods/#netrc
Please let us know whether this helps.
Guoqing
I think you need to configure your username and password for authentication using a .netrc file following the instruction on the following page:
https://oceancolor.gsfc.nasa.gov/data/download_methods/#netrc
Please let us know whether this helps.
Guoqing
-
- Posts: 1519
- Joined: Wed Sep 18, 2019 6:15 pm America/New_York
- Been thanked: 9 times
Re: ‘p’ is not recognized as an internal or external command, operable program or batch file when using wget on Windows1
Seems the "p" is incorrectly being interpreted as a command line option to wget. Try putting the URL in quotes, e.g.:
wget --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --auth-no-challenge=on --no-check-certificate --content-disposition -i
"https://oceandata.sci.gsfc.nasa.gov/cgi/getfile/requested_files_1.tar?h=ocdist309&p=/data1/7060517533972d6a/requested_files"
Sean
wget --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --auth-no-challenge=on --no-check-certificate --content-disposition -i
"https://oceandata.sci.gsfc.nasa.gov/cgi/getfile/requested_files_1.tar?h=ocdist309&p=/data1/7060517533972d6a/requested_files"
Sean