Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Aug 2000 21:43:12 -0500
From:      Jon Hamilton <hamilton@pobox.com>
To:        Ryan Thompson <ryan@sasknow.com>
Cc:        Kent Stewart <kstewart@urx.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Sending '@' in a password for ftp(1) 
Message-ID:  <20000828024312.7DBE0137@woodstock.monkey.net>
In-Reply-To: Your message of "Sun, 27 Aug 2000 13:31:50 MDT." <Pine.BSF.4.21.0008271329330.11846-100000@ren.sasknow.com> 

next in thread | previous in thread | raw e-mail | index | archive | help

In message <Pine.BSF.4.21.0008271329330.11846-100000@ren.sasknow.com>, 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000828024312.7DBE0137>