D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
usr
/
share
/
doc
/
smartmontools
/
examplescripts
/
Filename :
Example7
back
Copy
#! /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
Name
Size
Last Modified
Owner
Permissions
Actions
Example1
1.505
KB
July 18 2014 7:13:32
root
0644
Example2
0.691
KB
July 18 2014 7:13:32
root
0644
Example3
0.675
KB
July 18 2014 7:13:32
root
0644
Example4
0.252
KB
August 17 2013 9:22:53
root
0644
Example5
0.162
KB
August 17 2013 9:22:53
root
0644
Example6
0.89
KB
June 28 2019 8:12:33
root
0644
Example7
0.563
KB
June 28 2019 8:01:56
root
0644
Example8
1.107
KB
August 04 2019 3:29:43
root
0644
README
2.118
KB
August 04 2019 3:29:43
root
0644
2017 © D7net | D704T team