Link to home
Start Free TrialLog in
Avatar of shahrahulb
shahrahulb

asked on

ssh thru perl

My requirement.
i m running my script from server xyz.com under the directory /u/rshah1/temp.pl
in my perl script temp.pl i want to do ssh abc.com and there is a file run.pl in the directory /v/temp
is it possible to do in temp.pl

when i do ssh in perl script and run my scipt it does the ssh and my console get transferred to abc.com i cannot execute anything after ssh

so i want to run a script that resides on different server.

Thanks.
Avatar of gripe
gripe

You'll need to use the Net::SSH perl module to do this..
Avatar of shahrahulb

ASKER

no need for net::ssh

system(ssh xxx) worked for me also i did sshykeygen so that i don't have to enter password.

ASKER CERTIFIED SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial