[CentOS] if the file changes send email about diff

2011-02-06 Thread kellyremo
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 clients are in

Re: [CentOS] if the file changes send email about diff

2011-02-06 Thread Joseph L. Casale
I'm trying to create a script, that watches the changes in /dev/shm/dhcpacks-in-last-2min.txt file [in every 1 sec]. Have look at Gamin, its designed for this type of thing... ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] if the file changes send email about diff

2011-02-06 Thread kellyremo
Gamin? can you give a link? Google doesn't bring up relevant links regarding it :O On Sun, 06 Feb 2011 06:33:00 -0800 Joseph L. Casale lt;jcas...@activenetwerx.comgt; wrote gt;I'm trying to create a script, that watches the changes in gt; /dev/shm/dhcpacks-in-last-2min.txt file [in

Re: [CentOS] if the file changes send email about diff

2011-02-06 Thread Michael Klinosky
kellyremo wrote: Gamin? can you give a link? Google doesn't bring up relevant links regarding it :O http://www.google.com/linux?hl=enq=gaminbtnG=Search Note bene ^ ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] if the file changes send email about diff

2011-02-06 Thread Eduardo Grosclaude
On Sun, Feb 6, 2011 at 2:38 PM, Michael Klinosky m...@enter.net wrote: kellyremo wrote: Gamin? can you give a link? Google doesn't bring up relevant links regarding it :O yum search gamin will surely help. -- Eduardo Grosclaude Universidad Nacional del Comahue Neuquen, Argentina

Re: [CentOS] if the file changes send email about diff

2011-02-06 Thread Cameron Kerr
On 7/02/2011, at 2:33 AM, 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