You know what I found - it was actually the line endings:<br>I noticed it was in DOS format when I was playing with it on VI, and so I ran dos2unix and magically it was fine!<br><br><div class="gmail_quote">On Fri, Apr 15, 2011 at 11:24, Paul Smith <span dir="ltr"><<a href="mailto:paul@mad-scientist.net">paul@mad-scientist.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On Fri, 2011-04-15 at 11:12 -0500, Michael P. McDonnell wrote:<br>
> Is there a secret chroot or something going on that I don't know<br>
> about? I'm running dnsmasq 2.57 and whenever I try to run my<br>
> dhcp-script it bombs out saying "failed to execute /tmp/post-lease.sh:<br>
> No such file or directory"<br>
> However, if I say "ls -l /tmp/post-lease.sh" its most definitely<br>
> exists and its chmodded 777 just to be safe.<br>
><br>
> My relevant entry on my dnsmasq.conf is<br>
><br>
> dhcp-script=/tmp/post-lease.sh<br>
><br>
> Am I missing something important?<br>
<br>
</div></div>Just to ask the stupid question: the first line of your post-lease.sh<br>
file uses #! and references an existing, executable file, right?<br>
<br>
If the kernel can't exec the interpreter on your sh-bang line you get<br>
errors like this one.<br>
<br>
<br>
Or asked another way, can you run "/tmp/post-lease.sh" from the command<br>
line directly?<br>
<br>
</blockquote></div><br>