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

For clarificaiton, are you expecting to use plink (via system) to connect to the unix server then the remainder of your perl script should be executed by the unix server?

Replies are listed 'Best First'.
Re^4: run a perl script on a unix machine from a win machine
by akrrs7 (Acolyte) on Dec 01, 2011 at 15:45 UTC
    Yes...that is exactly what I would like to achieve.

      Then this isn't going to work. You should read and understand what plink does, and think about how perl works too. IMHO you should write a script which copies your file to the target servers, connects to each server in turn (via the likes of Net::SSH) executes the script and captures (or transfers) the results/output if appropriate.

        Exactly! I totally agree. Having a UNIX machine interpret a Perl script from your PC is not the best of software development practices. You can add a section in the script to FTP it to your local system or even email it to you if the command line email client is enabled on the servers.