Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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
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 taking refuge in the Monastery: (9)
As of 2014-10-21 22:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (112 votes), past polls