Hi <span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Anders,</span><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Thank you for your reply. I tried to start /bin/sh and type the varnishadm purge command. It worked fine and I could see the purge in purge.list. I also checked /var/log/cron and I am sure the varnishadm purge command was executed by cron, but the purge does not appear in the purge.list. Any ideas?</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Vincent<br>
</span></font><br><div class="gmail_quote">On Sun, Nov 14, 2010 at 5:03 AM, thebog <span dir="ltr"><<a href="mailto:thebog@gmail.com">thebog@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
if you do not see it in the list. Then there is a big possibility that<br>
the script never makes it into varnishadm. So I think it's safe to say<br>
that the problem is in the script somehow, and not varnish.<br>
Not that I am gonna debug your script, but take things into account<br>
that cron is often run by /bin/sh which may have different env<br>
variables than your normal shell (And therefore maybe a different<br>
PATH).<br>
<br>
Type /bin/sh and work from there.<br>
<br>
YS<br>
Anders Berg<br>
<div><div></div><div class="h5"><br>
<br>
On Sun, Nov 14, 2010 at 7:37 AM, Vincent <<a href="mailto:cooltechemail@gmail.com">cooltechemail@gmail.com</a>> wrote:<br>
> Hi All,<br>
> I am using 2.1.3 and I am having issue with purge via the varnishadm<br>
> command. Basically if I put the following command in crontab, the system<br>
> will run the command as defined in crontab but it seems that varnish will<br>
> ignore the command:<br>
> varnishadm -T <a href="http://127.0.0.1:8000" target="_blank">127.0.0.1:8000</a> purge req.http.host == "<a href="http://www.example.com" target="_blank">www.example.com</a>"<br>
> However, if I manually type the above command in the command line, there is<br>
> no problem. I've checked that <a href="http://www.example.com" target="_blank">www.example.com</a> is not in purge.list when the<br>
> command is ran using crontab but it will be included in purge.list when I<br>
> manually type the command.<br>
> Is this a bug?<br>
> Thanks,<br>
> Vincent<br>
</div></div>> _______________________________________________<br>
> varnish-misc mailing list<br>
<div class="im">> <a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
</div>> <a href="http://lists.varnish-cache.org/mailman/listinfo/varnish-misc" target="_blank">http://lists.varnish-cache.org/mailman/listinfo/varnish-misc</a><br>
><br>
</blockquote></div><br></div>