-----Original Message----- From: Andreas Ericsson [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2008 7:16 AM To: Jonathan Williams Cc: Valdinger, Stephen (DOV, MSX); nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Help - I am unable to get theNSClient++ to restart services
Please don't top-post. Others reading this email a year from now will have a very hard time knowing what you're answering to without scrolling down, then up, then halfway down, then up. Jonathan Williams wrote: > I did (at least similar). I ran it and it returned: > > /usr/local/bin/pearl -w > I'm guessing the output was actually #! /usr/local/bin/perl -w which is quite different from what you wrote, but I'll have to assume that the output you gave me is actually correct (who in their right minds would give false info to someone who's trying to help them??), so here it goes: * There's your error right there. To begin with, you probably don't have a binary named "pearl" anywhere on your system. * There's "#!" in front of the name of the script interpreter, so the kernel has no idea what to do with it. Run this command and it'll magically start working: sed -i '1s,.*,#!/usr/bin/perl -w,' check_sendmail.pl Note that "similar" hardly ever cuts it, especially if you want more help and don't paste the "similar" command you actually used along with the output it produced. copy-paste is your friend. -- Andreas Ericsson [EMAIL PROTECTED] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Got it...as far as the top posting goes...makes sense. Thanks. And yes there was a #! In front as you said. I did say similar just because the OP who was helping me said I would get something similar to #!/usr/bin/perl <args-to-perl>. My output was similar to that, but not exact. Thanks for the response. I ran the following: sed -i '1s,.*,#!/usr/bin/perl -w,' check_sendmail.pl return: sed: can't read check_sendmail.pl: No such file or directory ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null