LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-17-2011, 12:11 PM   #1
rmugunthan
Member
 
Registered: Jan 2009
Location: Coimbatore, India
Distribution: rhel
Posts: 49

Rep: Reputation: 3
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...
 
Old 11-17-2011, 12:18 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Perhaps something like:
Code:
wget --user=user --password=password http://whatever/file
Kind regards
 
Old 11-17-2011, 12:21 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,614
Blog Entries: 2

Rep: Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070
You can also use text-based browsers like links or w3m for that.
 
Old 11-17-2011, 12:24 PM   #4
kindofabuzz
Member
 
Registered: Mar 2010
Location: Memphis, TN
Distribution: Linux Mint 13, Ubuntu Server 10.04
Posts: 230

Rep: Reputation: 42
Code:
man wget
 
0 members found this post helpful.
Old 11-18-2011, 03:53 AM   #5
rmugunthan
Member
 
Registered: Jan 2009
Location: Coimbatore, India
Distribution: rhel
Posts: 49

Original Poster
Rep: Reputation: 3
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???
 
Old 11-18-2011, 04:55 AM   #6
JJJCR
Member
 
Registered: Apr 2010
Posts: 550

Rep: Reputation: 26
is there any error displayed when using wget?
 
Old 11-18-2011, 05:19 AM   #7
m3ll0
LQ Newbie
 
Registered: Feb 2010
Location: Spain
Posts: 4

Rep: Reputation: 0
u should get some kind of error when using wget, post it.
 
Old 11-18-2011, 05:56 AM   #8
vantagesupport
LQ Newbie
 
Registered: Nov 2011
Distribution: RHEL,CENTOS,UBUNTU
Posts: 6

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

Last edited by vantagesupport; 11-18-2011 at 05:58 AM.
 
Old 11-18-2011, 08:14 AM   #9
rmugunthan
Member
 
Registered: Jan 2009
Location: Coimbatore, India
Distribution: rhel
Posts: 49

Original Poster
Rep: Reputation: 3
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).
 
Old 11-18-2011, 08:50 AM   #10
vickyk
Member
 
Registered: Dec 2009
Posts: 38

Rep: Reputation: 6
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.
 
  


Reply

Tags
authentication, rhel, wget


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
setup command not found in Ubuntu 10.04 Command Prompt vinaytp Ubuntu 2 05-06-2010 02:10 PM
'file' command for Windows/command prompt? SlowCoder General 4 06-16-2009 09:11 AM
startx command in FC7 reverts me back to the command prompt sriram87 Linux - Newbie 5 01-04-2008 12:18 AM
Command line/ command prompt saiinch Linux - Newbie 5 03-17-2006 03:29 AM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 08:14 PM


All times are GMT -5. The time now is 08:50 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration