LinuxQuestions.org
Register a domain and help support LQ
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 06-19-2012, 06:51 PM   #1
Jobin1
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Rep: Reputation: Disabled
Using wget command to remotely download MATLAB to Linux machine


I am a big newbie here (this is my first day with Linux) and I am trying to remotely download MATLAB to a server for work. I have already paid for matlab, and recieved an email with a link prompting me to "download now". I tried using wget and the url of the download link, but I believe that I am having trouble because the download link requires a password and username from my purchase. I cannot just click the link and go through the download process because I need to download MATLAB to a separate server, not my computer. Where should I go from here? Is there a way in Terminal to step through the username / password prompts for this download?
 
Old 06-19-2012, 07:01 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,258

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
I'd use a browser to download visually for entering the user/passwd credentials, then copy it to wherever.
You'll need some Linux guides
http://rute.2038bug.com/index.html.gz

It's also going to help us if you tell us your Linux distribution+version for the target server and also your desktop if relevant.
This cmd line cmd should help
Code:
cat /etc/*release*
 
Old 06-19-2012, 07:34 PM   #3
Jobin1
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
I think the distribution and version is Debian 5.0.6 (if I'm looking at the right thing)
 
Old 06-19-2012, 07:40 PM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,051

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
not sure how matworks website is setup but wget has a --user and --password options.

also this example is on the wget man page:
Code:
# Log in to the server.  This can be done only once.
wget --save-cookies cookies.txt \
     --post-data 'user=foo&password=bar' \
     http://server.com/auth.php

# Now grab the page or pages we care about.
wget --load-cookies cookies.txt \
     -p http://server.com/interesting/article.php

Last edited by schneidz; 06-19-2012 at 07:48 PM.
 
Old 06-19-2012, 08:14 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,356

Rep: Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989
I would just download it using the browser and then scp it to the machine you actually want to use it on.
 
1 members found this post helpful.
Old 06-20-2012, 02:27 PM   #6
Jobin1
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Great scp worked perfectly. thanks!
 
Old 06-20-2012, 02:31 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Just because no one else mentioned it: Debian 5 is unsupported since February and will not get any security fixes. It is recommended to upgrade to Debian 6.
 
1 members found this post helpful.
  


Reply


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
Using wget or curl command to download from dynamic urls pratap.iisc Linux - Desktop 2 07-26-2009 11:55 PM
download only zip files using wget command Fond_of_Opensource Linux - Newbie 1 08-09-2006 04:47 AM
How to download web pages from a website using wget command Fond_of_Opensource Linux - Newbie 5 07-05-2006 10:50 AM
how to shutdown,restart and log off windows machine remotely through a linux machine deepak rawat Fedora 1 05-23-2006 02:25 AM
is there any linux command to download files from any ftp site remotely midnitc Linux - General 3 10-31-2003 09:05 AM


All times are GMT -5. The time now is 08:55 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration