X7ROOT File Manager
Current Path:
/usr/share/doc/smartmontools/examplescripts
usr
/
share
/
doc
/
smartmontools
/
examplescripts
/
📁
..
📄
Example1
(1.5 KB)
📄
Example2
(708 B)
📄
Example3
(691 B)
📄
Example4
(258 B)
📄
Example5
(166 B)
📄
Example6
(911 B)
📄
Example7
(577 B)
📄
Example8
(1.11 KB)
📄
README
(2.12 KB)
Editing: Example7
#! /bin/sh # # This is a script from the smartmontools examplescripts/ directory. # It can be used as an argument to the -M exec Directive in # /etc/smartd.conf, in a line like # ... -m root@localhost -M exec /path/to/this/file # # See also: smartd.conf(5), smartd(8). # # $Id: Example7 4930 2019-06-28 20:01:56Z chrfranke $ if [ $# -le 3 ] || [ "$1" != "-s" ]; then echo "Usage: $0 -s SUBJECT ADDRESS... < MESSAGE" exit 1 fi SUBJECT=$2 shift; shift ADDRESS=$* exec /usr/sbin/sendmail $ADDRESS <<EOF Subject: $SUBJECT To: $(echo $ADDRESS | sed 's/ /, /g') $(cat -) EOF
Upload File
Create Folder