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">&lt;<a href="mailto:paul@mad-scientist.net">paul@mad-scientist.net</a>&gt;</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>
&gt; Is there a secret chroot or something going on that I don&#39;t know<br>
&gt; about? I&#39;m running dnsmasq 2.57 and whenever I try to run my<br>
&gt; dhcp-script it bombs out saying &quot;failed to execute /tmp/post-lease.sh:<br>
&gt; No such file or directory&quot;<br>
&gt; However, if I say &quot;ls -l /tmp/post-lease.sh&quot; its most definitely<br>
&gt; exists and its chmodded 777 just to be safe.<br>
&gt;<br>
&gt; My relevant entry on my dnsmasq.conf is<br>
&gt;<br>
&gt; dhcp-script=/tmp/post-lease.sh<br>
&gt;<br>
&gt; 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&#39;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 &quot;/tmp/post-lease.sh&quot; from the command<br>
line directly?<br>
<br>
</blockquote></div><br>