Date: Sun, 27 Aug 2000 13:14:54 -0600 (CST) From: Ryan Thompson <ryan@sasknow.com> To: freebsd-questions@freebsd.org Subject: Sending '@' in a password for ftp(1) Message-ID: <Pine.BSF.4.21.0008271304170.11846-100000@ren.sasknow.com>
next in thread | raw e-mail | index | archive | help
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 <ryan@sasknow.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0008271304170.11846-100000>