naghaveer has asked for the wisdom of the Perl Monks concerning the following question:
I have written script in windows. It is running fine. But If I try to run in linux it is not giving output and also it is not throughing any error.
use Net::SSH::Any; use Config::IniFiles; # Check for valid number of arguments if (!defined $ARGV[0] && !defined $ARGV[1]) { die("Usage: export_ddts.pl projectname tmpl_path \n"); }; my $project = $ARGV[0]; my $tmpl = $ARGV[1]; ) #command to fetch records under particular class or project my $cmd="findbug -k $project |dumpbug -fnt $tmpl"; #Connecting to Config Files my $cfg = Config::IniFiles->new( -file => "configfile.ini" ); #fetching Remote connection credentials from .ini file my $ssh_url =$cfg->val( 'REMOTE_CREDENTIALS', 'HOST' ); my $ssh_user =$cfg->val( 'REMOTE_CREDENTIALS', 'USERNAME' ); my $ssh_pwd =$cfg->val( 'REMOTE_CREDENTIALS', 'PASSWORD' ); #Connecting to server and Fetching details my $ssh = Net::SSH::Any->new($ssh_url, user => $ssh_user, password => +$ssh_pwd); print "Connecting to Server........."; print "$cmd"; $ssh->system($cmd); #end of File
Is there any problem with CPAN modules which I'm using? Or Are CPAN modules differ from windows to Linux? please help me
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Query on Running perl Script in linux
by salva (Canon) on Feb 24, 2014 at 14:52 UTC | |
|
Re: Query on Running perl Script in linux
by hazylife (Monk) on Feb 24, 2014 at 13:19 UTC | |
|
Re: Query on Running perl Script in linux
by Discipulus (Canon) on Feb 24, 2014 at 13:25 UTC | |
by kcott (Archbishop) on Feb 24, 2014 at 13:56 UTC | |
|
Re: Query on Running perl Script in linux
by dbuckhal (Chaplain) on Feb 25, 2014 at 04:45 UTC | |
by naghaveer (Novice) on Feb 25, 2014 at 05:35 UTC | |
by syphilis (Archbishop) on Feb 25, 2014 at 10:14 UTC | |
by salva (Canon) on Feb 25, 2014 at 09:28 UTC | |
by Anonymous Monk on Mar 02, 2015 at 16:12 UTC | |
by salva (Canon) on Mar 02, 2015 at 16:28 UTC |