From owner-freebsd-questions Sun Aug 27 12:11:20 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ren.sasknow.com (ren.sasknow.com [207.195.92.131]) by hub.freebsd.org (Postfix) with ESMTP id 59F1537B42C for ; Sun, 27 Aug 2000 12:11:15 -0700 (PDT) Received: from localhost (ryan@localhost) by ren.sasknow.com (8.9.3/8.9.3) with ESMTP id NAA76414 for ; Sun, 27 Aug 2000 13:14:54 -0600 (CST) (envelope-from ryan@sasknow.com) Date: Sun, 27 Aug 2000 13:14:54 -0600 (CST) From: Ryan Thompson To: freebsd-questions@freebsd.org Subject: Sending '@' in a password for ftp(1) Message-ID: Organization: SaskNow Technologies [www.sasknow.com] MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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