I often peek into Perl Module source code to add debugging logs, or to find or narrow down problems. and have to spend sometime always to find where that module is installed. Following script was implemented to save me sometime:…
I often peek into Perl Module source code to add debugging logs, or to find or narrow down problems. and have to spend sometime always to find where that module is installed. Following script was implemented to save me sometime:…
We have struggled with this too, so will share the minimum steps needed to setup Net::SSH2 lib on Cent OS: Install pre-requisite libs: sudo yum install libgcrypt-devel sudo yum install zlib-devel Download libssh2 source code from here. Untar and cd to the…
wget can be used to download file from any server. However everytime you execute the command, it saves the copy of file instead of replacing the file if already exists. wget provides a flag that can be used to download the…
Here are the steps to configure Selenium with Perl. 1. Download Active Perl from the link: http://www.activestate.com/activeperl/downloads 2. Install the Perl using the installer. 3. Download Selenium RC Server from link: http://seleniumhq.org/download/ 4. Right Click on My Computer > Properties…
The following script should help you monitor the changes happening in the directory: #!/usr/bin/perl use strict; use warnings; my $directory = $ARGV[0]; if(!$directory) { die "Usage: perl monitor.pl <directory>"; }elsif(!(-d $directory)){ die "$directory is not a directory. Kindly provide a…