Re: Monitor Squid access.log

2004-12-07 Thread Brian McG
Paul Kraus wrote: I want to write an app that starts up when squid starts that will monitor access.log. everytime a line is written out to the log file the script will parse the line and then do some "stuff to it" I don't need any help with the stuff part :) What I don't understand is to how to hav

Re: Monitor Squid access.log

2004-12-07 Thread Brian McG
Paul Kraus wrote: > What I don't understand is to how to have a program running the > monitors a text file for changes? > It needs to be in real time because these machines are dhcp that being > the case I need to get the mac address of the ip being used the very > instance that it is used. Well,

Re: Monitor Squid access.log

2004-12-07 Thread Brian McG
Paul Kraus wrote: > What I don't understand is to how to have a program running the > monitors a text file for changes? > It needs to be in real time because these machines are dhcp that being > the case I need to get the mac address of the ip being used the very > instance that it is used. Well,

Re: Monitor Squid access.log

2004-12-07 Thread Brian McG
Paul Kraus wrote: What I don't understand is to how to have a program running the monitors a text file for changes? It needs to be in real time because these machines are dhcp that being the case I need to get the mac address of the ip being used the very instance that it is used. Well, you coul

Re: Monitor Squid access.log

2004-12-07 Thread Jonathan Paton
Dear Paul, Have a think about read and sysread: perldoc -f read perldoc -f sysread As they both return the number of bytes read, you can just loop until you get something to work with. What you get will be a string of bytes - you will need to massage them a little. If you get zero bytes, well

RE: Monitor Squid access.log

2004-12-07 Thread brian . barto
AM To: [EMAIL PROTECTED] Subject: Monitor Squid access.log I want to write an app that starts up when squid starts that will monitor access.log. everytime a line is written out to the log file the script will parse the line and then do some "stuff to it" I don't need any help with the s

Monitor Squid access.log

2004-12-07 Thread Paul Kraus
I want to write an app that starts up when squid starts that will monitor access.log. everytime a line is written out to the log file the script will parse the line and then do some "stuff to it" I don't need any help with the stuff part :) What I don't understand is to how to have a program runni