Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17803

Repeatedly run a command and alert me to changes?

$
0
0

I need to monitor a DB for changes, and alert me if there is a change. I want to run a command every X seconds and compare the output, if it's different alert me via email.

I want to do something very similar to watch --diff mysql < commands.sql but instead of --diff it would send me an email to alert me.

Is there anything already out there that will do this or should I write it?

submitted by /u/scottchiefbaker
[link] [comments]

Viewing all articles
Browse latest Browse all 17803

Trending Articles