Re: non-interactive ftp
I would use Expect for this. Another option is to use Perl's ftp module.
You could replace ur entire system with a perl script.
At 06:57 PM 11/27/2005 +0100, Christian wrote:
>i'm trying to write a backup script which is directly saving the
>valueable data to my ftp-backup space. i was going to use ncftpput,
>because it lets me do this:
>
>tar cvf - /home | ncftpput -u operator -c server /backups/monday.tar
>
>so i can backup direct to my backup space without saving it to the local
>disk (which is a good thing, as content grows...). but this way i also
>have to rotate the backups on the backup space. only ftp is allowed on the
>backup server and ncftp* does not allow me to send non-RAW ftp command (or
>i'm too dumb to parse the manpages). so, tried to use good ol' ftp(1) with
>the help of .netrc:
--
REMEMBER THE WORLD TRADE CENTER ---=< WTC 911 >=--
"...ne cede malis"
00000100
Reply to: