<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Feb 20, 2008, at 9:46 PM, Charlie Farinella wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi all,<br><br>For the moment I have given up trying to do the http purge thing and am <br>trying to find a workaround.  I have the following shell script:<br><br>==<br>#!/bin/sh<br>host=127.0.0.1<br>port=6082<br>cmd="url.purge"<br>param=".*"</div></blockquote><div><br class="webkit-block-placeholder"></div><div>Try escaping the * there. It's probably using every file in CWD as parameters as you don't quote them further down.</div><div><br class="webkit-block-placeholder"></div><div>/Eirik</div><br><blockquote type="cite"><div><br><br>echo open ${host} ${port}<br>sleep 1<br>echo ${cmd} ${param}<br>sleep 3<br>echo exit<br>==<br><br>The result of this script is:<br>==<br>./clearcache.sh | telnet<br>telnet> Trying 127.0.0.1...<br>Connected to localhost.localdomain (127.0.0.1).<br>Escape character is '^]'.<br>105 20      <br>Too many parameters<br>Connection closed by foreign host.<br>==<br><br>If I put any other command in the script, it works fine.  If I <br>use 'url.purge' as the command, but '^/$' as the parameter, that works <br>fine.  Only the '*' or '.*' throws the 'too many parameters' error.  <br>What is the correct command and format to purge the entire cache?<br><br>If anyone has a solution for me I would be very appreciative.  If I <br>cannot find an automated way for the web development people to clear <br>this cache at will, I'm going to have to try to set up Apache or Squid <br>to do the caching and I'd just rather not do that.  :-)<br><br>-- <br>------------------------------------------------------------------------<br>Charles Farinella <br>Appropriate Solutions, Inc. (<a href="http://www.AppropriateSolutions.com">www.AppropriateSolutions.com</a>)<br><a href="mailto:cfarinella@AppropriateSolutions.com">cfarinella@AppropriateSolutions.com</a><br>voice: 603.924.6079   fax: 603.924.8668<br><br>_______________________________________________<br>varnish-misc mailing list<br><a href="mailto:varnish-misc@projects.linpro.no">varnish-misc@projects.linpro.no</a><br>http://projects.linpro.no/mailman/listinfo/varnish-misc<br><br></div></blockquote></div><br></body></html>