Make an input file called script.ftp (or something similar) containing the commands that you would type into ftp:
quote user userid quote pass password lcd <local directory> cd <remote directory> bin mput * bye Then in your script put: ftp -inv remote_host < script.ftp I always tee the result into a file and grep for the number of "226 Transfer Complete" messages and compare it to the expected number of files. Phil Skuse Unix System Administrator Vicorp Group Limited -----Original Message----- From: Reuben D. Budiardja [mailto:[EMAIL PROTECTED]] Sent: 28 August 2002 15:49 To: [EMAIL PROTECTED] Subject: non-interactive FTP to transfer file Hi, I am trying to use FTP to backup my files to another machine. I want this to be automated via cron, so I need a 'non-interactive' way. What can I use to do this, and how? I've looked through the man page for ftp and ncftp, but have not found the non-interactive way, so that I can just put in one command to copy files. Thanks for any help. Reuben D. Budiardja -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list