sporkit has asked for the wisdom of the Perl Monks concerning the following question:
Also the script md5xml runs#!/usr/bin/perl use Net::SSH2; $ssh2 = Net::SSH2->new(); $ssh2->connect('asdfasdfas.com') or die $!; $ssh2->auth_password('user','pass') or die "Unable to login $@ \n"; $ssh2->debug(0); $chan2 = $ssh2->channel(); $chan2->blocking(0); $chan2->shell(); print $chan2 "bash ~/md5xml\n"; print "LINE : $_" while <$chan2>; $chan2->close; print 'done...';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: NET::SSH2 Terminates
by syphilis (Archbishop) on Nov 24, 2010 at 00:37 UTC | |
|
Re: NET::SSH2 Terminates
by zentara (Cardinal) on Nov 24, 2010 at 12:51 UTC | |
|
Re: NET::SSH2 Terminates
by salva (Canon) on Nov 24, 2010 at 09:23 UTC |