Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: What are all the possible ways to deploy Perl code on multiple servers?

by onelesd (Pilgrim)
on Jul 19, 2011 at 17:13 UTC ( #915508=note: print w/ replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://915508]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2016-06-29 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (387 votes). Check out past polls.