Hi, the problem is command 'mysql'
Whether i pass command as dir or ipconfig OK!, if pass command mysql NO!
any solution?
use Net::SSH2;
my $ssh2 = Net::SSH2->new();
$ssh2->connect('***.***.***.***') or die "Unable to connect Host $@ \n";
#this works for passwords
$ssh2->auth_password('******','******') or die "Unable to login $@ \n";
my $chan = $ssh2->channel();
$chan->blocking(0);
$chan->exec("cmd /k mysql -uroot < \"\%Userprofile\%/insert_into_rdad.sql\"");
while (<$chan>){ print }