[nylug-talk] Help with automating ftp

Allen Chan allen at developers.alyz.com
Tue Dec 11 14:54:52 EST 2007


On Tuesday 11 December 2007, Christopher Yee Mon wrote:
> I tried using
> echo -e "machine <machineip> login <logindomainname>\\<loginname>
> password <password>"
> which just puts the exact same thing that the first command put.

You need four backslashes in your script in order to put two backslashes
into .netrc so that it is read by ftp as a single backslash.

Also see this item found via google:
http://www.linuxquestions.org/questions/linux-general-1/use-of-special-characters-in-.netrc-file-573791/


More information about the nylug-talk mailing list