]>
git.proxmox.com Git - mirror_smartmontools-debian.git/blob - examplescripts/Example6
4 echo "$SMARTD_MESSAGE" |
mail -s "$SMARTD_FAILTYPE" "$SMARTD_ADDRESS"
7 MESSAGE
="WARNING: Your hard drive is failing"
9 # direct write to terminals, do not use 'wall', because we don't want its ugly header
10 for t
in $
(who |
awk '{ print $2; }' |
grep -e '^tty' -e '^pts/')
13 $SMARTD_MESSAGE" >/dev
/$t 2>/dev
/null ||
: