What you have described is not a Perl problem but you want "a birds eye perspective" so here are two approaches.
* Forget about FTP or telnet.
In reply to Re: execute local script on remote machine via ftp & crontab
by Mr. Muskrat
in thread execute local script on remote machine via ftp & crontab
by igrepstuff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |