From owner-freebsd-questions Sun Aug 27 12:21:51 2000 Delivered-To: freebsd-questions@freebsd.org Received: from 2711.dynacom.net (2711.dynacom.net [206.107.213.3]) by hub.freebsd.org (Postfix) with ESMTP id 4468E37B43E for ; Sun, 27 Aug 2000 12:21:46 -0700 (PDT) Received: from urx.com (dsl1-160.dynacom.net [206.159.132.160]) by 2711.dynacom.net (Build 101 8.9.3/NT-8.9.3) with ESMTP id MAA05048; Sun, 27 Aug 2000 12:21:43 -0700 Message-ID: <39A96A48.17306B38@urx.com> Date: Sun, 27 Aug 2000 12:21:44 -0700 From: Kent Stewart Reply-To: kstewart@urx.com Organization: Dynacom X-Mailer: Mozilla 4.74 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Ryan Thompson Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Sending '@' in a password for ftp(1) References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ryan Thompson wrote: > > Hi everybody, > > How do I send an '@' symbol as part of a password for ftp(1), using the > syntax: > > ftp ftp://user:password@host/path/file It has been a 2.5 years since I was doing something like that. We used a text file that was redirected as stdin to ftp. We did something like "ftp < mfg_data" and mfg_data looked like open mfg user anonymous ryan@sasknow.com put xxx quit I may have missed or over used a key-word. Kent > > As part of a shell script, I'm trying to connect to an anonymous FTP > server, but the wu-ftpd server requires a properly formatted email address > as a password, and will disconnect otherwise. So, I need something like: > > ftp ftp://ftp:ryan\@sasknow.com@ftp.server.com/path/file > > ...but I can't think of a way to escape the '@' in the email address in > such a way that ftp(1) won't get confused into thinking > "sasknow.com@ftp.server.com" is the host. > > I realize that .netrc or possibly an expect(1) script would work, but I > would much rather have something that is purely command-line driven. > > Thanks! > > - Ryan > > -- > Ryan Thompson > Network Administrator, Accounts > Phone: +1 (306) 664-1161 > > SaskNow Technologies http://www.sasknow.com > #106-380 3120 8th St E Saskatoon, SK S7H 0W2 > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Kent Stewart Richland, WA mailto:kbstew99@hotmail.com http://kstewart.urx.com/kstewart/index.html FreeBSD News http://daily.daemonnews.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message