Search squid archive

external_acl_type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello List,
 
Can someone please point me to a resource describing what an external
acl program must return and how. In my quest to "bind" an IP to a
username I have created the following:
 
ip_to_user.sh
#!/bin/bash
 
while [ 1 ]
do
        while read ip
        do
                ip_done="0";
 
                echo "Auth'ing $ip..." >> /var/log/ip_to_user.log
 
                if [ $ip = "1.2.3.4" ]; then
                        echo "OK user=user"
                        echo "OK user=user" >> /var/log/ip_to_user.log
                        ip_done="1";
                fi
        done
done

That seems to work, but at some stage all 5 of them use 100% CPU - even
when they are not auth'ing.

Did I miss something ?

Thanks,

Pieter
?This e-mail is sent on the Terms and Conditions that can be accessed by Clicking on this link http://www.vodacom.net/legal/email.aspx "


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux