Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README
monitor.sh

README

Monitor streams for specific byte sequences and react
usage: monitor.sh keyword command

examples:
	tail -f /var/log/access.log | ./monitor.sh "admin" "./alertme.sh"
	ssh me@server "tail -f /var/log/error.log" | ./monitor.sh "invalid" 'echo "Alert!" | mail ...'