Date: Sat, 8 Jun 2002 09:44:15 +0200 From: "Patrick O'Reilly" <bsd@perimeter.co.za> To: "Voyager" <voyager@gmx.net>, <freebsd-questions@FreeBSD.ORG> Subject: Re: a Synatx question! Message-ID: <200206080939.46503@.perimeter.co.za> In-Reply-To: <000801c20e42$6005f9f0$8119fea9@ghods> References: <000801c20e42$6005f9f0$8119fea9@ghods>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri 07 Jun 02 18:42, Voyager wrote: > Dear Sir, > I have some problem with freebsd syntax specialy using wget. > > If som body want to use wget to get a file from an ftp while the user > name or password contains @ charachter. what should be done? for > example from a link is this form: > ftp://abc:A@B@x.x.x.x > where A@B is the pass for that ftp account. > > Another question if the ftp address contains special charachters like > ; or + or = wget get confused. How could one access such ftp > addresses using wget ? > Farzad The shell meeds to be protected from these special characters. Here are a couple of variations you could try: # wget "ftp://abc:A@B@x.x.x.x" OR # wget ftp://abc:A\@B@x.x.x.x You try similar tricke with the other special characters too. Even a space (" ") needs to be used sometimes, especially in M$ environments where people like to use spaces in file names. Simple quotes will do the trick there: # wget "http://www.domain.com/ful/path/file name with spaces.doc" HTH -- Regards, Patrick O'Reilly. ___ _ __ / _ )__ __ (_)_ __ ___ _/ /____ __ / __/ -_) _) / ~ ) -_), ,-/ -_) _) /_/ \__/_//_/_/~/_/\__/ \__/\__/_/ http://www.perimeter.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206080939.46503>