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 12-14-2008, 06:46 PM   #1
muasif80
Member
 
Registered: Oct 2008
Posts: 54

Rep: Reputation: 15
wget command needs your help please help!


I have run the following command

wget -c -d --user='User' --password='PASSWORD' 'http://URL:2082/getsqlbackup/cpback.sql.gz'


The output of the command is as follows. Please tell me how can I run this command successfully.


--17:43:06-- http://URL:2082/getsqlbackup/cpback.sql.gz
(try: 7) => `cpback.sql.gz'
Found URL in host_name_addresses_map (0x639070)
Connecting to URL|IP|:2082... Closed fd 3
failed: Connection timed out.
Releasing 0x0000000000639070 (new refcount 1).
Retrying.
 
Old 12-14-2008, 07:55 PM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
The connection timed out -check ~/.wgetrc ... how long is the timeout period?

Check wget by attempting a different file on a different server.
If it works, you should probably squirt a support request at the sysadmin.
 
Old 12-14-2008, 08:24 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
It looks like you're trying to connect to port 2082 on the web server - does your firewall allow traffic to that port? A default deny policy won't so you may have to add a rule for that port to your firewall.
 
Old 12-15-2008, 05:17 AM   #4
muasif80
Member
 
Registered: Oct 2008
Posts: 54

Original Poster
Rep: Reputation: 15
Thanks for the reply I had put

-check ~/.wgetrc

on my shell and it says -check command is not available

For the firewall settings can you please tell me how can I check them.

I am using shared hosting service from hostmonster and they are telling me they can't help me running commands. While I requested them to just tell me if there is some restriction on running this command from their shared hosting server.

Once agains thanks for your replies.
 
Old 12-15-2008, 05:43 AM   #5
muasif80
Member
 
Registered: Oct 2008
Posts: 54

Original Poster
Rep: Reputation: 15
Can I override firewall rules for my specific account. Is this possible on my shared hosting?

Thanks
 
Old 12-15-2008, 12:57 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
To check the file called ~/.wgetrc you need to open it with a text editor. In the previous post "check" was not a command for the shell.

Your hoster should be able to tell you which ports they block - it should also be somewhere on their website. You can check that wget is working by trying to retrieve a different URL on port 80 of that server instead of port 2082. (I'm assuming that they also listen on port 80 for non-authenticated content).
 
Old 12-15-2008, 01:40 PM   #7
AuroraCA
Member
 
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
Change your port to port 80 and try. Port 2082 is a CPANEL port and may be why you cannot access it.

You may have used CPANEL to create the backup file but that port may not be available to your individual user account.
 
Old 12-16-2008, 03:23 PM   #8
muasif80
Member
 
Registered: Oct 2008
Posts: 54

Original Poster
Rep: Reputation: 15
In fact I have to connect to port 2082 as I am trying to get backup from cpanel.

Secondly I have looked this .wgetrc file but it is not present in my ~ directory.

Thanks
 
Old 12-17-2008, 04:49 AM   #9
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Quote:
Quote:
The connection timed out -check ~/.wgetrc ... how long is the timeout period?
-check ~/.wgetrc
funny.
Quote:
Secondly I have looked this .wgetrc file but it is not present in my ~ directory.
Well... creating one may help things.

cp /etc/wgetrc ~/.wgetrc
gedit ~/.wgetrc

read the comments in the file.
uncomment the parts that look useful to you.
try to understand what it is doing.

Read through:

man wget

Check your own firewall with:

iptables -L

... from you comments, I expect that it is down. But you never know.

Why don't you use the cpanel interface to download your backup?
http://www.cpanel.net/docs/cpanel/
 
  


Reply

Tags
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
wget command nawuza Linux - Newbie 3 07-16-2008 10:37 PM
Wget command help divyahm Linux - Software 12 09-04-2007 01:25 PM
Need help with wget command learners Linux - Software 0 09-04-2007 07:28 AM
wget command? cornbeef Slackware 4 01-14-2006 09:08 AM
wget command glock19 Linux - General 0 11-29-2001 02:20 PM


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