Is their Automatic command to send a JPG file using FTP
Viraj.Dixit at CityofPaloAlto.org
Thu Jan 28 21:39:42 UTC 2010
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.
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/>
.netrc simply doesn't work in FreeBSD.
Is their someone who has a working script. Thanks!!!
From: Dan Nelson [mailto:dnelson at allantgroup.com]
Sent: Wednesday, January 27, 2010 2:54 PM
To: Dixit, Viraj
Cc: freebsd-questions at freebsd.org
Subject: Re: Is their Automatic command to send a JPG file using FTP
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
> ftp and download a file or a JPG from that server. Like in Linux OS
> 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.
FreeBSD's ftp command supports .netrc files. Is your current script not
dnelson at allantgroup.com
More information about the freebsd-questions