LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   download from command prompt (https://www.linuxquestions.org/questions/linux-newbie-8/download-from-command-prompt-914064/)

rmugunthan 11-17-2011 11:11 AM

download from command prompt
 
Hi,

Someone explain how to pass the authentication information in "wget" to download file from the oracle OTN site.

OR any other options are available to download from the oracle OTN site form the linux command prompt.

i am using RHEL 5.4 64bit OS...

repo 11-17-2011 11:18 AM

Perhaps something like:
Code:

wget --user=user --password=password http://whatever/file
Kind regards

TobiSGD 11-17-2011 11:21 AM

You can also use text-based browsers like links or w3m for that.

kindofabuzz 11-17-2011 11:24 AM

Code:

man wget

rmugunthan 11-18-2011 02:53 AM

hi,

I tried with "elinks" browser, from that unable to download. Also i tried with "--user and --password" options in "wget", this also not helps to me..

Any other ideas or concerns on this???

JJJCR 11-18-2011 03:55 AM

is there any error displayed when using wget?

m3ll0 11-18-2011 04:19 AM

u should get some kind of error when using wget, post it.

vantagesupport 11-18-2011 04:56 AM

You can also use curl
curl -u username:password http://www.example.com/filename

rmugunthan 11-18-2011 07:14 AM

I got the below message

wget -c --http-user=ssousername --http-passwd=ssopassword http://download-llnw.oracle.com/otn/...gR2_client.zip

--2011-11-18 05:11:42-- http://download-llnw.oracle.com/otn/...gR2_client.zip
Resolving download-llnw.oracle.com... 208.111.160.6, 208.111.161.254
Connecting to download-llnw.oracle.com|208.111.160.6|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://download.oracle.com/otn/linux...gR2_client.zip [following]
--2011-11-18 05:11:42-- http://download.oracle.com/otn/linux...gR2_client.zip
Resolving download.oracle.com... 208.111.161.254, 208.111.160.6
Reusing existing connection to download-llnw.oracle.com:80.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://edelivery.oracle.com/otn/linu...gR2_client.zip [following]
--2011-11-18 05:11:42-- http://edelivery.oracle.com/otn/linu...gR2_client.zip
Resolving edelivery.oracle.com... 184.51.254.174
Connecting to edelivery.oracle.com|184.51.254.174|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn/lin...gR2_client.zip [following]
--2011-11-18 05:11:42-- https://edelivery.oracle.com/otn/lin...gR2_client.zip
Connecting to edelivery.oracle.com|184.51.254.174|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://login.oracle.com/pls/orasso/...6853AC1372EA5C [following]
--2011-11-18 05:11:43-- https://login.oracle.com/pls/orasso/...6853AC1372EA5C
Resolving login.oracle.com... 141.146.8.119
Connecting to login.oracle.com|141.146.8.119|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2009 (2.0K) [text/html]
orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v1.2~CA55CD32~BC0E0251F7B16928B67362D5489674783F5E9 54553ADC8284A6BFB104851C658211EDFB7B1563B0D2C379C897B83902A44199BA7AE83DDDB9BE8C31DCF8A5C5B85A8C4401 ACE8ECD20432BD4A7525D2393BBB24900C8E807B0BC8B9788370DD860A6E7223ADC2FB5EF92160182017570848A761C88DE4 5D79B6E98EFEF5B98157DC69E1CF66A37FD9160789331C88A7400107B1EAC0DCEA43199F13C476C08A0181B0FECF862AA64A 4D846D80CB06D1933EBB46F601C19E7C5A85384C52465CDE075CFC86FCF35B2CC61B6D333847B8D275B786E1E3E87150BA1E F60E1FF5467222D1A9A1F9C216FAF6853AC1372EA5C: File name too long

Cannot write to `orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v1.2~CA55CD32~BC0E0251F7B16928B67362D5489674783F5E 954553ADC8284A6BFB104851C658211EDFB7B1563B0D2C379C897B83902A44199BA7AE83DDDB9BE8C31DCF8A5C5B85A8C440 1ACE8ECD20432BD4A7525D2393BBB24900C8E807B0BC8B9788370DD860A6E7223ADC2FB5EF92160182017570848A761C88DE 45D79B6E98EFEF5B98157DC69E1CF66A37FD9160789331C88A7400107B1EAC0DCEA43199F13C476C08A0181B0FECF862AA64 A4D846D80CB06D1933EBB46F601C19E7C5A85384C52465CDE075CFC86FCF35B2CC61B6D333847B8D275B786E1E3E87150BA1 EF60E1FF5467222D1A9A1F9C216FAF6853AC1372EA5C' (Success).

vickyk 11-18-2011 07:50 AM

Well, I searched on net and found it is issue with wget not able to parse more than 255 chars in a file name.

The file you are trying to download has a long name, so it is causing issues.

As per the link http://savannah.gnu.org/bugs/?21714

it is solved in wget version 1.12!. If you are using old version, then please upgrade. If the newer version is not present in the OS repo then install it using rpm/deb.

If nothing works, simply download it to a Windows machine and then use winscp to send it to the linux machine (Port 22 needs to be allowed for the Windows IP in the Linux box).

Hoping for a simpler solution.


All times are GMT -5. The time now is 07:36 PM.