Hint from Dr. Wisenheimer:

Writing everything on one line results in negative XPs!

Compare:

Thanks for your replies, The only difference I find is when I run this command as "root' I get the below output:

perl -e 'print join("\n",@INC)' /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5

While I run as non-root I get the below output:

perl -e 'print join("\n",@INC)' /opt/nms/perl/lib /opt/nms/perl/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /opt/nms/perl/lib/perl5/site_perl/5.8.8 /opt/nms/perl/lib/perl5/site_perl /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5

Actually there is no perl folder inside the /opt/nms/ but not sure how it is showing that. Will that be an issue? But apart from that I checked the permission of Sybase.pm and the path where the Sybase.pm is all seems to be fine. Thanks.

See also Writeup Formatting Tips.

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»


In reply to Re: perl script to run as non-root by karlgoethebier
in thread perl script to run as non-root by dbashyam

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.