in reply to Re^3: SNMPTT error
in thread SNMPTT error

They reported the error as:

"Can't open perl script "/usr/share/snmp/snmp_perl_trapd.pl": No such file or directory"

The fact the directory isn't in their PATH simpy means that your suggestions for finding the file won't look there. If you're simply looking for a file ls -al /path/to/file.pl will tell you what you need to know about it. Since the full path is being used and the file does not exist, they get the error message displayed.

"You may need to issue a rehash. To slurp it into your working ENV."

Results in "Sorry, no data found for `rehash'."

Replies are listed 'Best First'.
Re^5: SNMPTT error
by taint (Chaplain) on Dec 03, 2013 at 15:37 UTC

    Couple of things;
    "Can't open perl script "/usr/share/snmp/snmp_perl_trapd.pl" could just as easily mean the x bit isn't set.
    Secondly, the path it was listing, wasn't within the OP's PATH list.
    Lastly, I indicated "may" regarding rehash. This, of course, would depend on the OP's shell. So, it might be pertinent, and then again, might not. But doesn't hurt to mention, in case it does. Does it?

    --Chris

    #!/usr/bin/perl -Tw
    use Perl::Always or die;
    my $perl_version = (5.12.5);
    print $perl_version;

      "Lastly, I indicated "may" regarding rehash. This, of course, would depend on the OP's shell. So, it might be pertinent, and then again, might not. But doesn't hurt to mention, in case it does. Does it?"

      Did you read what I wrote? Did you test the link you've now posted twice? Strange that you comment on the quality of peoples posts.

        LOL. I don't recall the OP mentioning Linux anywhere. Do you?
        #!/usr/bin/perl -Tw
        use Perl::Always or die;
        my $perl_version = (5.12.5);
        print $perl_version;