>From: "Nick Lindsell" <[EMAIL PROTECTED]> > >> Or check out rsync - it will only backup changes you make in your >> directory and can be run as unattended cronjob to rsync server. >> I've had great success with it. > >by coincidence this same topic was disussed today in the UYLUG (Uruguayan >Linux Users Group) mailing list
#!/usr/bin/expect if {[llength $argv] < 5} { send_error "batchftp.exp <user> <password> <filename> <node> <directory>\n" exit 1 } set timeout 60 set user [lindex $argv 0] set password [lindex $argv 1] set filename [lindex $argv 2] set nodename [lindex $argv 3] set directory [lindex $argv 4] spawn ftp -n $nodename expect { timeout { send_user "Timed out on connect"; exit } "ftp>" } send "user\r" expect "name" send "$user\r" expect "Password:" send "$password\r" expect "ftp>" send "binary\r" expect "ftp>" send "prompt off\r" expect "ftp>" send "cd $directory\r" set timeout -1 expect "ftp>" send "mput $filename\r" expect "ftp>" send "quit\r" ------------------------------------------------------- Todd Merriman Software Toolz, Inc. 8030 Pooles Mill Dr., Ball Ground, GA 30107 [EMAIL PROTECTED] ------------------------------------------------------- -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list