From owner-freebsd-questions@FreeBSD.ORG Thu Jan 28 21:39:42 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A90E7106566C for ; Thu, 28 Jan 2010 21:39:42 +0000 (UTC) (envelope-from Viraj.Dixit@CityofPaloAlto.org) Received: from xmail.cityofpaloalto.org (cerberus.city.palo-alto.ca.us [199.33.32.254]) by mx1.freebsd.org (Postfix) with ESMTP id 912088FC1A for ; Thu, 28 Jan 2010 21:39:39 +0000 (UTC) Received: from xpo.staff.copa ([172.17.1.12]) by xmail.cityofpaloalto.org with Microsoft SMTPSVC(6.0.3790.3959); Thu, 28 Jan 2010 13:39:39 -0800 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Thu, 28 Jan 2010 13:39:38 -0800 Message-ID: <9A8CAB63B4C2014B883AF16FDFB362FB01F016CD@xpo.staff.copa> In-Reply-To: <20100127225334.GX50360@dan.emsphone.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Is their Automatic command to send a JPG file using FTP Thread-Index: Acqfp6xneHjUUgpSQHKjG6pmDnzJOwAuYFKA References: <9A8CAB63B4C2014B883AF16FDFB362FB01F016C5@xpo.staff.copa> <20100127225334.GX50360@dan.emsphone.com> From: "Dixit, Viraj" To: "Dan Nelson" , "Polytropon" X-OriginalArrivalTime: 28 Jan 2010 21:39:39.0301 (UTC) FILETIME=[64DE4D50:01CAA062] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: RE: Is their Automatic command to send a JPG file using FTP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jan 2010 21:39:42 -0000 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 =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