Alvaro:
run the command 'find / -name squidclient -print'
With squid-2.5.STABLE3-20030602 on a Linux box it was in /usr/local/squid/bin
Note: the program name is squidclient not client (I'm not sure when it got changed).
Tim Bernhardson
Senior Technical Engineer
Certified Citrix Metaframe Administrator
Certified CyberGuard Administrator
Certified AIX 4.3 System Administrator
Sun-Maid Growers of California
7273 Murray Drive, Ste 18
Stockton, CA 95210
tbernhar at sunmaid dot com
>>> "Alvaro Figueroa C." <afigueroa@santotomas.cl> 09/02/03 04:33PM >>>
Thanks Tony for your prompt reply. I think I'll give your solution a
try. However, solution in the FAQ entry I referred to before is as
simple as 'client -m PURGE http://urltopurge' (FAQ 7.5 I think) I've
been unable to make it work though, despite I modified my squid.conf
file according to the FAQ. I get an error 'access deny' so I guess
there's something I'm missing from squid.conf.
Regards,
Alvaro
-----Original Message-----
From: "Tony Melia (DMS)" <Tony.Melia@downsmicro.com.au>
To: 'Alvaro Figueroa' <afigueroa@santotomas.cl>,
squid-users@squid-cache.org
Date: Wed, 3 Sep 2003 08:51:31 +1000
Subject: RE: [squid-users] How to purge an object from cache
> I did have a simple cgi script to do this, you will need to make a
> form to
> pass it the URL as
> http://localhost/cgi-bin/purger.cgi?url=http://website/url.htm
> Change the ip/port no as required, also you may need to make changes
> to
> squid.conf to give 'yourself' permissions to purge. This script was
> on a
> secure server - and I did not have to worry about malicious use, so
> it is
> not safe to put on a publicly accessible site.
>
> ===========================================
> use CGI qw(:standard);
> $urltopurge=param("url");
> print header();
>
> print "Trying to purge <b>$urltopurge</b><P>";
> print "sending command <B>squidclient -v -m PURGE -h 192.168.2.27 -p
> 8080
> $urltopurge</b> to
> proxy server<P><HR><b>Server Response:</b><P>";
>
> $result = system ("squidclient -v -m PURGE -h 192.168.2.27 -p 8080
> $urltopurge");
>
> print "<hr>";
> print "Purger.cgi v1.0 - Tony Melia";
> ============================================
>
> Regards,
> Tony
>
> -----Original Message-----
> From: Alvaro Figueroa [mailto:afigueroa@santotomas.cl]
> Sent: Wednesday, 3 September 2003 08:38
> To: squid-users@squid-cache.org
> Subject: [squid-users] How to purge an object from cache
>
>
> There is a FAQ entry for this question which refers to a 'client'
> program
> but it I can't find it anywhere on my server. Can somebody tell me
> where
> can I get a copy of the program?
>
> Thanks,
> Alvaro
>
> --------------------------
> Alvaro Figueroa Cristiá
> Administrador de Red
> Corporación Santo Tomás
> (562)376-3483
> --------------------------
>
>
>
> Downs MicroSystems Pty Ltd
> 145 Margaret Street
> Toowoomba Qld 4350
> Ph. (07) 4639 3344 Fax (07) 4639 3820
>
> Important Disclaimer and Warning
>
> Downs MicroSystems does not represent or warrant that any attached
> files are
> free from computer viruses or other defects. The attached files are
> provided, and may only be used, on the basis that the user assumes
> all
> responsibility for any loss, damage or consequences resulting
> directly or
> indirectly from use of the attached files. The liability of Downs
> MicroSystems in any event is limited to either the resupply of the
> attached
> files or the cost of having the attached files resupplied.
>
> NOTE: The views expressed by the individual in this message do not
> necessarily reflect those of the organisation.
>
> Downs MicroSystems is committed to protecting the privacy of
> individuals,
> and is bound by the principles of the Commonwealth Privacy Act
> (1988).
> Should you wish to view our Privacy Policy, please visit
> www.downsmicro.com.au.
>
> The information contained in this message is confidential and may be
> legally
> privileged. The message is intended solely for the addressee(s). If
> you are
> not the intended recipient, you are hereby notified that any use,
> dissemination, or reproduction is strictly prohibited and may be
> unlawful.
> If you are not the intended recipient, please contact the sender by
> return
> e-mail and destroy all copies of the original message.
>
Received on Tue Sep 02 2003 - 17:47:20 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:19:30 MST