Re: if the file changes send email about diff

2011-02-09 Thread owen
I have 2 script. Script A, Script B. ... If the goal is to see if a lease is either released by the client or times out on the server, then why not just set up an action in dhcpd.conf to email when either of these events take place? If you're not using DDNS, then this should be fairly easy

Re: if the file changes send email about diff

2011-02-07 Thread Mark Neidorff
On Sunday 06 February 2011 12:25 pm, kellyremo wrote: The file only contains plain MAC addresses, separated with a new line: Like: FF:FF:FF:FF:FF:F1 FF:FF:FF:FF:FF:F2 Or: FF:FF:FF:FF:FF:F2 On Sun, 06 Feb 2011 06:40:32 -0800 frank thyes lt;fr...@anotheria.netgt; wrote On Sun,

Re: if the file changes send email about diff

2011-02-06 Thread frank thyes
On Sun, 2011-02-06 at 05:33 -0800, kellyremo wrote: /dev/shm/dhcpacks-in-last-2min.txt Could you pastebin this file too? Frank -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive:

Re: if the file changes send email about diff

2011-02-06 Thread kellyremo
The file only contains plain MAC addresses, separated with a new line: Like: FF:FF:FF:FF:FF:F1 FF:FF:FF:FF:FF:F2 Or: FF:FF:FF:FF:FF:F2 On Sun, 06 Feb 2011 06:40:32 -0800 frank thyes lt;fr...@anotheria.netgt; wrote On Sun, 2011-02-06 at 05:33 -0800, kellyremo wrote: gt;

Re: if the file changes send email about diff

2011-02-06 Thread frank thyes
On Sun, 2011-02-06 at 09:25 -0800, kellyremo wrote: The file only contains plain MAC addresses, separated with a new line: Like: FF:FF:FF:FF:FF:F1 FF:FF:FF:FF:FF:F2 Or: FF:FF:FF:FF:FF:F2 Then your script is absolutely useless. Frank -- To UNSUBSCRIBE, email to

Re: if the file changes send email about diff

2011-02-06 Thread Bob Proulx
kellyremo wrote: I have 2 script. Script A, Script B. Script A is regulary watching the dhcpacks [dhcp release is configured to 2mins] in the logs, for the past 2 minutes. it writes the MAC addresses to a file [/dev/shm/dhcpacks-in-last-2min.txt] every 2 minutes. Ok, this is working, active