Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by akrrs7 (Acolyte)
on Dec 01, 2011 at 15:47 UTC ( [id://941101]=note: print w/replies, xml ) Need Help??


in reply to Re: 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

Because it needs to be run on n number of servers and I need the results on my win desktop. It would be a pain to upload the script on each server and get the results file back to my machine each time I want to run the script.
  • Comment on Re^2: run a perl script on a unix machine from a win machine

Replies are listed 'Best First'.
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

    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". ;-)
Re^3: run a perl script on a unix machine from a win machine
by JavaFan (Canon) on Dec 01, 2011 at 22:01 UTC
    Well, that's how the world works. You got to have the program on the machine where you want to run it. There's absolutely no way to run a program that's one one machine on another without first transferring the program. Regardless of what OS the machines runs, or in which language the program is written in.

    It's like wanting to read a book that's in the library. You first get to check out the book...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2024-04-18 12:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found