Date: Thu, 28 Jan 2010 13:39:38 -0800 From: "Dixit, Viraj" <Viraj.Dixit@CityofPaloAlto.org> To: "Dan Nelson" <dnelson@allantgroup.com>, "Polytropon" <freebsd@edvax.de> Cc: freebsd-questions@freebsd.org Subject: RE: Is their Automatic command to send a JPG file using FTP Message-ID: <9A8CAB63B4C2014B883AF16FDFB362FB01F016CD@xpo.staff.copa> In-Reply-To: <20100127225334.GX50360@dan.emsphone.com> References: <9A8CAB63B4C2014B883AF16FDFB362FB01F016C5@xpo.staff.copa> <20100127225334.GX50360@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, The script that I have setup does not work if I run the .netrc file. I ran the commands in ftp -v mode and it did not like machine command, did not like passwd or pwd etc.=20 machine 0.0.0.0 login VJ password 123456 macdef init binary lcd /ftp cd /var/temp get newemp.db quit =20 If I use this command in .netrc it connects to the server but it does not connect using my login name VJ, it points to some other name. ftp 0.0.0.0 <ftp://ftp 0.0.0.0/>=20 .netrc simply doesn't work in FreeBSD. Is their someone who has a working script. Thanks!!! =20 =20 =20 -----Original Message----- From: Dan Nelson [mailto:dnelson@allantgroup.com]=20 Sent: Wednesday, January 27, 2010 2:54 PM To: Dixit, Viraj Cc: freebsd-questions@freebsd.org Subject: Re: Is their Automatic command to send a JPG file using FTP =20 In the last episode (Jan 27), Dixit, Viraj said: > I am looking to see if there a command or a script In BSD Os that will > allow me to ftp to a server automatically and get a file from another > server. User name and passwd will be already in the script so it will run > ftp and download a file or a JPG from that server. Like in Linux OS there > is a command using .netrc file and you can script that file and will > automatically do what is in the file at time interval that you want.=20 > Thanks, =20 FreeBSD's ftp command supports .netrc files. Is your current script not working? =20 http://www.freebsd.org/cgi/man.cgi?query=3Dftp#THE_.netrc_FILE =20 --=20 Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9A8CAB63B4C2014B883AF16FDFB362FB01F016CD>