From owner-freebsd-questions Sun Aug 27 19:43:49 2000 Delivered-To: freebsd-questions@freebsd.org Received: from out3.mx.nwbl.wi.voyager.net (out3.mx.nwbl.wi.voyager.net [169.207.3.79]) by hub.freebsd.org (Postfix) with ESMTP id 9CBEB37B424 for ; Sun, 27 Aug 2000 19:43:35 -0700 (PDT) Received: from woodstock.monkey.net (d21.as15.nwbl0.wi.voyager.net [169.207.134.149]) by out3.mx.nwbl.wi.voyager.net (8.9.3/8.9.3) with ESMTP id VAA13309; Sun, 27 Aug 2000 21:43:22 -0500 Received: from pobox.com (localhost [127.0.0.1]) by woodstock.monkey.net (Postfix) with ESMTP id 7DBE0137; Sun, 27 Aug 2000 21:43:12 -0500 (CDT) X-Mailer: exmh version 2.1.1 10/16/1999 To: Ryan Thompson Cc: Kent Stewart , freebsd-questions@FreeBSD.ORG Subject: Re: Sending '@' in a password for ftp(1) In-reply-to: Your message of "Sun, 27 Aug 2000 13:31:50 MDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 27 Aug 2000 21:43:12 -0500 From: Jon Hamilton Message-Id: <20000828024312.7DBE0137@woodstock.monkey.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message , Ryan Tho mpson wrote: } Kent Stewart wrote to Ryan Thompson: } > 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 } } } Yup.. that's easy enough... even easier with .netrc, but if possible, I'd } like to find a purely command-line driven solution (i.e., no I/O) so } everything can be contained in the script, and no temporary files are } needed. ftp -n << __EOF open mfg user anonymous ryan@sasknow.com put xxx quit __EOF and you're there. -- Jon Hamilton hamilton@pobox.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message