Trouble with wget

This is a discussion on Trouble with wget within the Linux General forums, part of the Linux Forums category; Hi, I'm trying to execute a wget command with a username and password on Fedora Core 5 Linux. Problem ...


Go Back   Usenet Forums > Linux Forums > Linux General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-20-2007
laredotornado@zipmail.com
 
Posts: n/a
Default Trouble with wget

Hi,

I'm trying to execute a wget command with a username and password on
Fedora Core 5 Linux. Problem is my username to the FTP site contains
a "@". Username is "dalvarado@thedomain.com". So when I try the
following, I get the following error:

[laredotornado@mymachine]~/dir1% wget -r ftp://dalvarado@thedomain.org:passwo...hedomain.org:/
ftp://dalvarado@thedomain.org:passwo...edomain.org:/: Bad port
number.

FINISHED --16:18:31--
Downloaded: 0 bytes in 0 files


I even tried adding a "\" in front of the "@", like so:

[laredotornado@mymachine]~/savetownlake% wget -r
ftp://dalvarado\@thedomain.org:passw...hedomain.org:/

but got the same error.

Any advice on how to fix? - Dave

Reply With Quote
  #2 (permalink)  
Old 08-20-2007
Darren Salt
 
Posts: n/a
Default Re: Trouble with wget

I demand that laredotornado@zipmail.com may or may not have written...

> I'm trying to execute a wget command with a username and password on Fedora
> Core 5 Linux. Problem is my username to the FTP site contains a "@".
> Username is "dalvarado@thedomain.com". So when I try the following, I get
> the following error:


> [laredotornado@mymachine]~/dir1% wget -r ftp://dalvarado@thedomain.org:passwo...hedomain.org:/
> ftp://dalvarado@thedomain.org:passwo...edomain.org:/: Bad port number.

[snip]

> I even tried adding a "\" in front of the "@", like so:
> [laredotornado@mymachine]~/savetownlake% wget -r ftp://dalvarado\@thedomain.org:passw...hedomain.org:/


The shell ate that \ :-)

You could try \\@ (or \@, with the whole URL in quotation marks) or %40, but
you probably really want the --user and --password options or the --ftp-*
versions.

--
| Darren Salt | linux or ds at | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
| + Buy local produce. Try to walk or cycle. TRANSPORT CAUSES GLOBAL WARMING.

Don't put too fine a point to your wit for fear it should get blunted.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:38 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0