in reply to Re: [Help]Build a tool/application using Perl
in thread [Help]Build a tool/application using Perl
Look like this does not work.
use Net::SSH::Any qw(); my $ssh = Net::SSH::Any->new( '172.20.251.20', user => 'root', password => 'r3 +v3nue' ); my @tmp = $ssh->capture('ls -lrt'); print " @tmp";
Output:
Use of uninitialized value $tmp[0] in join or string at test.pl line 7.For the application, please be explained again. I try to give an simple example to easier: - Using Perl to have a script to detect an even number from a number input from keyboar - Create an application base on this script. This can be installed on Windowns. Then, when I wannna find I only need to run the app instead of executing perl "script.pl" I am sorry, I cannot use exactly works to describe.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: [Help]Build a tool/application using Perl
by daxim (Curate) on Oct 10, 2019 at 10:16 UTC | |
Re^3: [Help]Build a tool/application using Perl
by Corion (Patriarch) on Oct 10, 2019 at 09:26 UTC | |
by tctoa (Novice) on Oct 10, 2019 at 09:35 UTC | |
by Corion (Patriarch) on Oct 10, 2019 at 10:39 UTC |