LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Using wget command to remotely download MATLAB to Linux machine (https://www.linuxquestions.org/questions/linux-newbie-8/using-wget-command-to-remotely-download-matlab-to-linux-machine-4175412346/)

Jobin1 06-19-2012 06:51 PM

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?

chrism01 06-19-2012 07:01 PM

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*

Jobin1 06-19-2012 07:34 PM

I think the distribution and version is Debian 5.0.6 (if I'm looking at the right thing)

schneidz 06-19-2012 07:40 PM

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


suicidaleggroll 06-19-2012 08:14 PM

I would just download it using the browser and then scp it to the machine you actually want to use it on.

Jobin1 06-20-2012 02:27 PM

Great scp worked perfectly. thanks!

TobiSGD 06-20-2012 02:31 PM

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.


All times are GMT -5. The time now is 04:55 AM.