in reply to What are all the possible ways to deploy Perl code on multiple servers?

If you have a small codebase or a single script, I find this to be easiest. I realize it doesn't fit all situations, but if you are the one running the scripts or you are able to use cron, this works a treat.
scp yourscript.pl user@server:/tmp && \ ssh -t user@server \ 'perl /tmp/yourscript.pl && rm /tmp/yourscript.pl'
  • Comment on Re: What are all the possible ways to deploy Perl code on multiple servers?
  • Download Code

Replies are listed 'Best First'.
Re^2: What are all the possible ways to deploy Perl code on multiple servers?
by thirdm (Sexton) on Jul 19, 2011 at 21:14 UTC
    ssh (or at least openssh) lets you redirect stdin over the network. So you could skip the rm here, e.g...
    ssh -t user@server perl < yourscript.pl