perl ssh automation libs for deployment

3 libs are needed to run lib: use Net::SSH::Expect;

[root@system1 Expect-1.35-5jN4zk]# perl Makefile.PL INSTALL_BASE=/root/deploy
[root@system1 IO-Tty-1.16-76YMxG]# perl Makefile.PL INSTALL_BASE=/root/deploy
[root@system1 Net-SSH-Expect-1.09-dIBvM1]# perl Makefile.PL INSTALL_BASE=/root/deploy/

cd /root/deploy
tar -cvf ../perl_deploy.tar lib/ man/

>> the perl_deploy.tar file contains the necessary libs

>> copy perl_deploy.tar to destination system >> and extract the tar file in a lib directory,
now the new lib directory contains directory man + lib

>> to make use of the deployed libs just add the "use lib" definition to your perl script:

use lib "<path to your lib directory>/lib/perl5";
use strict;
use Net::SSH::Expect;

computer2know :: thank you for your visit :: have a nice day :: © 2022