<div dir="ltr"><span style="font-size:12.8px">Tried directly in command line with two diffs:</span><div style="font-size:12.8px">git diff -C -M ad78a3e0cf8a14e3c1c2d0a0ba354e<wbr>7580d9b9de e072c5c2033884852ff1c3b1290d22<wbr>292f73373d -- "routers/configs/router1" | /etc/rancid/diff2html.py > diff.html</div><div style="font-size:12.8px">and the output is as expected.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Checked the script too, and there are no email triggers in it. The same scenario is when I use another script written in bash.</div><div style="font-size:12.8px">The diff script is triggered every time rancid schedules a job no matter new diffs are recorded or not.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 30, 2017 at 3:09 PM, heasley <span dir="ltr"><<a href="mailto:heas@shrubbery.net" target="_blank">heas@shrubbery.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thu, Mar 30, 2017 at 01:40:30PM +0200, Vanja Luk:<br>
<span class="">> DIFFSCRIPT="/etc/rancid/<wbr>diff2html.py"; export DIFFSCRIPT<br>
><br>
> As soon as the script is commented rancid does not send empty emails any<br>
> more.<br>
<br>
</span>test it manually and separately from rancid. does it work as described in<br>
rancid.conf(5).<br>
</blockquote></div><br></div>