i have a netwok,and i have a perl script running on a machine(say machine1). the purpose of the script is to login to each of the other machines using ssh. i am able to logon to other machne (say machine2) byusing the following code
system("ssh <host_ip>");
after loging on to the network i need to run another perl script that is saved on the machine2. i want it to be done from the perl script running on machine1. i tried to do it by giving
perl filename.pl > testfile.txt ***(i used the testfile to check wheether it is getting executed)
after loging on to machine2(ssh machine2) from the perl code running on machine1. but it is not working.
is there any way to solve the problem?
system("ssh <host_ip>");
after loging on to the network i need to run another perl script that is saved on the machine2. i want it to be done from the perl script running on machine1. i tried to do it by giving
perl filename.pl > testfile.txt ***(i used the testfile to check wheether it is getting executed)
after loging on to machine2(ssh machine2) from the perl code running on machine1. but it is not working.
is there any way to solve the problem?
Comment