1

I need to execute this command

wget -r ftp://$USER:$PASSWORD@$SITE/

But first since there were some special characters (such as '!?') within the PASSWORD I had some problems that I solved by escaping them with '\'..

Now I am facing the problem that special character don't work with the ftp command...(here)

At the moment I get this:

Bad port number

This is because also some numbers are present within the PASSWORD, I tried to single-quote, but without success..

How can I solve, if I would not change the password?

On terminal, on Debian.

2
  • 2
    Use the --ftp-user and --ftp-password parameters instead of encoding it into the URL.
    – Joe
    Oct 10, 2012 at 17:16
  • @Joe It worked, thanks. If you wanna make an answer I will choose it.
    – elect
    Oct 10, 2012 at 19:06

1 Answer 1

2

Use the --ftp-user and --ftp-password parameters instead of encoding it into the URL

2
  • I'd love an example on how to do this, since the ftp man page doesn't have an ftp-user flag. Sep 18, 2019 at 15:26
  • That's because the question (and answer) are about wget
    – Joe
    Sep 18, 2019 at 18:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .