<div dir="ltr"><br><br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div class="Wj3C7c">Jonathan Williams wrote:<br>> I did (at least similar). I ran it and it returned:<br>><br>> /usr/local/bin/pearl -w<br>><br><br>I'm guessing the output was actually<br>#! /usr/local/bin/perl -w<br>
which is quite different from what you wrote, but I'll have to<br>assume that the output you gave me is actually correct (who in<br>their right minds would give false info to someone who's trying<br>to help them??), so here it goes:<br>
<br>* There's your error right there. To begin with, you probably don't<br>have a binary named "pearl" anywhere on your system.<br>* There's "#!" in front of the name of the script interpreter, so<br>
the kernel has no idea what to do with it.<br><br>Run this command and it'll magically start working:<br><br>sed -i '1s,.*,#!/usr/bin/perl -w,' check_sendmail.pl<br><br>Note that "similar" hardly ever cuts it, especially if you want<br>
more help and don't paste the "similar" command you actually<br>used along with the output it produced. copy-paste is your<br>friend.<br><br>--<br>Andreas Ericsson <a href="mailto:andreas.ericsson@op5.se">andreas.ericsson@op5.se</a><br>
OP5 AB <a href="http://www.op5.se/" target="_blank">www.op5.se</a><br>Tel: +46 8-230225 Fax: +46 8-230231<br><br></div></div>Got it...as far as the top posting goes...makes sense. Thanks. And yes<br>
there was a #! In front as you said. I did say similar just because the<br>OP who was helping me said I would get something similar to<br>#!/usr/bin/perl <args-to-perl>. My output was similar to that, but not<br>exact. Thanks for the response. I ran the following:<br>
<div class="Ih2E3d"><br>sed -i '1s,.*,#!/usr/bin/perl -w,' check_sendmail.pl<br><br></div>return:<br><br>sed: can't read check_sendmail.pl: No such file or directory<br>
<div>
<div></div>
<div class="Wj3C7c"><br> </div></div></blockquote></div>
<div>I been following your Emails on this issue and it looks like this must be some simple mistake somewhere, for example runtime Libexec is not the directory your using, FIlemames mispellings, things missing from the path or some other unkown issue.</div>
<div> </div>
<div>Try running some normal shell script that just gives a date or pwd to validate the Libexec directory you are copying files to is the one nagios is run from.</div>
<div> </div>
<div>In the above command was it suppose to be sendmail.pl instead of check_sendmail.pl ? (I am not sure I did not think hard about what the command does) but most of the prior emails mentioned only sendmail.pl while check_ is common prefix of most common nagios plugins.</div>
<div> </div>
<div>Last in prior posts I noticed the -n in the command has a space between the - and the n is it really there or is it just my email reader? if it is there should it be there?</div>
<div> </div>
<div>Tony (Author of NC_net)</div>
<div>(I actually prefer reading Top posted msg - but I understand Andreas point on Bottom posting or inline posting)</div>
<div> </div></div>