isha has asked for the wisdom of the Perl Monks concerning the following question:

I have many machine in a network. Now I have to ping each machine and check whether it is alive or not. If it is alive then i have to invoke a perl script on the remote alive machine from the local machine. The perl script is present on that remote machine only. I just have to invoke(run) it on alive remote machine. How can i write a perl script for this?
  • Comment on Invoke a perl script on the remote machine.

Replies are listed 'Best First'.
Re: Invoke a perl script on the remote machine.
by fenLisesi (Priest) on Jun 29, 2007 at 07:04 UTC

      Or, even better, look at Net::SSH2 which is actively maintained and actually installs and works on modern platforms(disclaimer: this may be personal bias, but I haven't been able to get Net::SSH to do this for some time now).


      All dogma is stupid.
        Is there any other way other than using Net:SSH2.... I want my script to run in both network... Linux as well as windows. Thanks.
          A reply falls below the community's threshold of quality. You may see it by logging in.