in reply to [Help]Build a tool/application using Perl
ssh to a server then issuing commands […] issue "date" - get outputs and push them into a variable @tmpNet::SSH::Any seems easiest to me.
#!/usr/bin/env perl use Net::SSH::Any qw(); my $ssh = Net::SSH::Any->new('192.168.1.10', user => 'root', password +=> '123456'); my @tmp = $ssh->capture('date');
How to build an application?Perhaps Module::Build::Tiny? You need to explain what you want to achieve because "build" can mean different things.
Simple Perl programs do not require a building step, they can be run as-is.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: [Help]Build a tool/application using Perl
by tctoa (Novice) on Oct 10, 2019 at 09:22 UTC | |
by daxim (Curate) on Oct 10, 2019 at 10:16 UTC | |
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 |
In Section
Seekers of Perl Wisdom