This commit is contained in:
2018-11-29 09:02:38 -06:00
parent d447944eb5
commit f85c1c95b8
2 changed files with 7 additions and 16 deletions

View File

@@ -1,12 +1,12 @@
#!/bin/sh
#
# Monitor file $1 for changes
# Send an alert emai to $2 if file $1 changes
# usage: filewatcher /var/log/messages your.name@domain.com
# Send an alert email to $2 if file $1 changes
# usage: filewatcher {file_to_watch} {your_email_address}
#
if [ -z "$2" ]; then
echo "Usage: filewatcher /var/log/messages your.name@domain.com"
echo "Usage: filewatcher {file_to_watch} {your_email_address}"
exit 1
fi