Re: [squid-users] More than one type of redirector

From: Colin Campbell <sgcccdc@dont-contact.us>
Date: Tue, 26 Jun 2001 08:08:25 +1000 (EST)

Hi,

On Mon, 25 Jun 2001, Daniel Barron wrote:

> Oh no! It won't work. What I've got is the following:
>
> /etc/squid/redirector.sh:
> #!/bin/sh
> /usr/local/bin/squidGuard -c /etc/squidGuard/conf/squidGuard.conf | /etc/squid/redirector.pl
>
>
> /etc/squid/redirector.pl:
> #!/usr/bin/perl
> $|=1;
> while (<>) {
> s@http://www.bedmod.org.uk@http://www.bedmod.org.uk/index2.html@;
> print;
> }
>
>
> And in squid.conf:
> redirect_program /etc/squid/redirector.sh
> redirect_children 5
>
> Both redirector scripts are owned by squid.
>
> squidGuard seems to still work. But the perl redirector won't work when
> piped together, but it will run from the command line.
>
> I've tried piping the perl to squidGuard and it still does not work.

What happens if you

        echo http://www.bedmod.org.uk | /etc/squid/redirector.pl

Does the user squid runs as have access to /etc/squid/redirector.pl and
/usr/bin/perl?

Colin
Received on Mon Jun 25 2001 - 16:08:35 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:00:50 MST