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?