Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: run a perl script on a unix machine from a win machine

by afoken (Chancellor)
on Dec 01, 2011 at 16:25 UTC ( [id://941112]=note: print w/replies, xml ) Need Help??


in reply to Re^2: run a perl script on a unix machine from a win machine
in thread run a perl script on a unix machine from a win machine

Write a deploy script that copies the work script to all servers. Something like this:

#!/usr/bin/perl use strict; use warnings; foreach my $server qw( oldserver newserver strangeserver ) { system "pscp workscript.pl user\@$server:/tmp/workscript.pl"; }

For instant results, add this to the foreach loop:

system "plink user\@$server perl /tmp/workscript.pl -foo -bar -kab +oom";

Or use one of the SSH modules available at CPAN.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-26 00:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found