I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2011-02-23 07:51:03.865583-08 by basileus82 in response to 13212
Re: Windows 7 and Net-SSH2
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 }
Direct Responses: Write a response