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


In reply to Query on Running perl Script in linux by naghaveer

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.