in reply to execute local script on remote machine via ftp & crontab

What you have described is not a Perl problem but you want "a birds eye perspective" so here are two approaches.

  1. Configure the remote machine to act as a proxy for the internal machine. Execute the script on the internal server as described.
  2. Execute the script on a remote machine with web access. Transfer the files to the internal server via SFTP, SCP or another secure protocol*.

* Forget about FTP or telnet.

  • Comment on Re: execute local script on remote machine via ftp & crontab