[squid-users] bash/mysql script not working

From: Osmany Goderich <osmany_at_es.quimefa.cu>
Date: Mon, 2 Apr 2012 14:28:01 -0400

Hi everyone,

Please have a look at this bash/mysql external helper. Can anyone tell me
why is it not working?

#/bin/bash
connect="mysql -h 127.0.0.1 -b squid -u squid -p password -e"
url="%DST"
while read $url
do
if [ $connect "select site from porn where site='$url'" ]
then
echo OK
else
echo ERR
fi
done

is there anyway I can test this directly on the server's shell
Received on Mon Apr 02 2012 - 18:32:01 MDT

This archive was generated by hypermail 2.2.0 : Tue Apr 03 2012 - 12:00:02 MDT