LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-11-2006, 05:12 AM   #1
menator
LQ Newbie
 
Registered: Nov 2005
Posts: 11

Rep: Reputation: 0
Wget and a username containing a '\'


I just cant figure this one out...

Im trying to retrieve a file from anf ftp server with wget. THe username I have is a bit odd in that it has a backslash in it e.g. abc\def

I cant seem to get wget to log in properly. It says the username is incorrect. I have tried every way that I can think of:

escaping the character with another \ i.e. abc\\def
using a hex code i.e. abc%5Cdef
using double and single quotes i.e. 'abc\def' and "abc\def"
using a variable in shell script i.e. ftpuser="abc\def" and using $ftpuser variable in wget line.


I know the ftp server works. I can connect to it using notmal FTP command and I can even browse to the site over the web.

How can I get wget to work?
 
Old 04-11-2006, 06:43 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,905

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Try with the --ftp-user and --ftp-password options to see if it works. Or use the .wgetrc file to define those options.
Hope that helps.
 
Old 04-11-2006, 08:25 AM   #3
menator
LQ Newbie
 
Registered: Nov 2005
Posts: 11

Original Poster
Rep: Reputation: 0
yep that did it thanks
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why "bash-2.05b$" in Terminal instead of "username@localhost username" jayelitumbiolo Linux - General 9 10-04-2009 03:16 AM
about wget spx2 Linux - Newbie 7 12-19-2005 03:37 AM
using wget bucovaina78 Linux - Software 3 03-28-2005 07:02 AM
useradd: invalid username username$ engyeow Fedora 5 12-05-2004 04:35 AM
Wget Help flamesrock Linux - Software 1 08-26-2004 02:35 AM


All times are GMT -5. The time now is 07:04 PM.

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