LinuxQuestions.org
Help answer threads with 0 replies.
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 03-06-2011, 10:02 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 30
download file via wget


I would like to use wget to downlaod file from Redhat linux to my windows desktop , I tried some parameter but still not work , can advise if wget can do download file from linux server to windows desktop ? if yes , can advise how to do it ? thx
 
Old 03-06-2011, 10:03 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
wget is a tool to download files from HTTP and FTP servers, it doesn't matter what the operating system on the server is.

Perhaps if you posted the exact command you are using, we could make a little more sense of the issue.
 
Old 03-07-2011, 01:28 AM   #3
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by MS3FGX View Post
wget is a tool to download files from HTTP and FTP servers, it doesn't matter what the operating system on the server is.

Perhaps if you posted the exact command you are using, we could make a little more sense of the issue.


I use wget -r file_name

then it pops the following
"
"
Resolving et.csv... failed: Temporary failure in name resolution.

Downloaded: 0 bytes in 0 files

can advise what can i do ? thx
 
Old 03-07-2011, 01:30 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Resolving et.csv... failed: Temporary failure in name resolution.
Try to use the IP

Kind regards
 
Old 03-07-2011, 02:00 AM   #5
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by repo View Post
Try to use the IP

Kind regards


What is the full command that I should use ? Thanks
 
Old 03-07-2011, 02:20 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
What is the full command that I should use ? Thanks
Code:
wget <ip>/filename
As pointed out by MS3FGX
Quote:
wget is a tool to download files from HTTP and FTP servers, it doesn't matter what the operating system on the server is.
Kind regards
 
Old 03-07-2011, 02:32 AM   #7
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 30
When run the command , it pops the below error

--16:29:38-- http://192.168.0.2/
=> `index.html'
wget: /home/edp/.netrc:1: unknown token "passwd"
wget: /home/edp/.netrc:1: unknown token "pass1"
wget: /home/edp/.netrc:2: unknown token "passwd"
wget: /home/edp/.netrc:2: unknown token "pass2"
Connecting to 192.168.0.2:80... failed: Connection refused.
--16:29:38-- http://test/
=> `index.html'
Resolving test... failed: Temporary failure in name resolution.

FINISHED --16:29:38--
Downloaded: 0 bytes in 0 files
 
Old 03-07-2011, 02:36 AM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Please post the command you are using.
Do you have a webserver running on 192.168.0.2 ?

Kind regards
 
Old 03-07-2011, 02:42 AM   #9
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by repo View Post
Please post the command you are using.
Do you have a webserver running on 192.168.0.2 ?

Kind regards
wget 192.168.0.2 test

No webserver is running
 
Old 03-07-2011, 02:44 AM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
wget is a tool to download files from HTTP and FTP servers, it doesn't matter what the operating system on the server is.
If no web or ftp server is running, wget will not work.
You could however install ssh, ans use this to transfer files
http://linux.byexamples.com/archives...s-through-ssh/

Kind regards

Last edited by repo; 03-07-2011 at 02:46 AM.
 
Old 03-07-2011, 09:49 AM   #11
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Rep: Reputation: 30
Quote:
Originally Posted by repo View Post
If no web or ftp server is running, wget will not work.
You could however install ssh, ans use this to transfer files
http://linux.byexamples.com/archives...s-through-ssh/

Kind regards
Thanks reply ,

what I exactly want to download file from Putty , as I know Putty supports wget as I ask how can I use it , it wget is not work in my case , what download method that I can use ?

Thanks.
 
Old 03-07-2011, 09:54 AM   #12
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
If you want to use putty, install/enable the ssh daemon on the computer containing the file.

Kind regards
 
Old 03-07-2011, 09:55 AM   #13
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,208

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
If you want to use 'wget' on your 'Windows' desktop to download a file from a linux server to your 'windows' computer, you can use CygWin which is a sort of Unix shell for windows that will allow you to use wget to download something to your windows computer.
 
Old 03-07-2011, 10:25 AM   #14
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Rep: Reputation: 30
Quote:
Originally Posted by szboardstretcher View Post
If you want to use 'wget' on your 'Windows' desktop to download a file from a linux server to your 'windows' computer, you can use CygWin which is a sort of Unix shell for windows that will allow you to use wget to download something to your windows computer.
Putty supports Cygwin to run ?
 
Old 03-07-2011, 10:31 AM   #15
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,208

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
If:

You have windows

You have a server with linux on it

You want to download a file FROM your linux server, TO your windows desktop

Then:

You can install CygWin on your Windows desktop, and use CygWin's "wget" to download from your linux server.
 
  


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
[SOLVED] 404 error when using wget to download pdf -- related to Save File popup jj3286 Linux - Software 1 10-16-2010 06:42 AM
wget - how to download more than one file at once instead of file after file? De-M-oN Linux - Server 15 09-24-2010 05:35 PM
Download with wget.....or!!!!! mpregos Slackware 7 06-23-2009 02:51 PM
using wget to download a cgi file i.you Linux - Newbie 1 03-29-2008 10:37 AM
Script to download file using wget linuxnewbie82 Programming 6 02-14-2007 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:27 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