I need to setup a crontab on my server to login to a remote server & ftp me a file routinely without any human intervention.
I cannot use rsh, rcp, or rlogin because I cannot edit /etc/hosts on the remote server. Besides, I only have a basic user account on the remote server.
I am wondering if there is a way to run a script program written in C or sh on my server to manually send strings to login on remote server, perform tasks, and ftp a file from the remote server to my server.
I have been playing around with sprintf, system(command), etc., but no luck because the remote server generates a very long banner messages for login process. Please help!