.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user