On Mon, Dec 10, 2012 at 2:39 PM, Alvin Ramos <w...@theflux.net> wrote:
> I was curious, how could I write into the script to send me the > information one time instead of every 5 minutes after it does find a lock? You could touch/create a file and use the time stamp as a semaphore - if the file is not there or old enough (say once an hour) send the msg and clear it once the lock is gone. stat() can give you the file date (depends on your OS but atime, ctime or mtime might work for you) in epoch seconds, so you can do simple math to see how long since the last msg was sent. -- a Andy Bach, afb...@gmail.com 608 658-1890 cell 608 261-5738 wk