Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2015-07-28 21:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (259 votes), past polls