Creating an automated FTP process on RH Linux
Posted on 2006-04-18
I know this quetion has been asked before, but I cannot find a solution that works. Here are the essential facts and requirement:
1. I must use FTP. I know it's not secure, but this is an internal network where security is not an issue.
2. The script must run from RH Linux
3. The connection is to a NAS device that supports FTP
4. The FTP session must be able to be scheduled and run unattended.
I have tried a variety of scripts, but always get "stuck" when FTP requests a password. For example, I have tried:
ftp < myscript
where myscript is:
just to test out the basic process. I have also tried variations like USER annymous, but it is always the same - FTP prompts for a password. This is probably simple, but I'm not getting anywhere. Could someone please help? Thanks in advance!