From owner-freebsd-questions Sat Jun 8 0:41:27 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dns.perimeter.co.za (dns.perimeter.co.za [196.25.164.254]) by hub.freebsd.org (Postfix) with ESMTP id 5DFC337B403 for ; Sat, 8 Jun 2002 00:41:19 -0700 (PDT) Received: from there (nld-dial-196-30-177-63.mweb.co.za [196.30.177.63]) by dns.perimeter.co.za (8.11.1/8.11.1) with SMTP id g587ew124072; Sat, 8 Jun 2002 09:40:58 +0200 (SAST) (envelope-from bsd@perimeter.co.za) Content-Type: text/plain; charset="iso-8859-1" From: "Patrick O'Reilly" Organization: Perimeter Networks CC Message-Id: <200206080939.46503@.perimeter.co.za> To: "Voyager" , Subject: Re: a Synatx question! Date: Sat, 8 Jun 2002 09:44:15 +0200 X-Mailer: KMail [version 1.3.2] References: <000801c20e42$6005f9f0$8119fea9@ghods> In-Reply-To: <000801c20e42$6005f9f0$8119fea9@ghods> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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