D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
usr
/
share
/
doc
/
smartmontools
/
examplescripts
/
Filename :
Example2
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 # # Please see man 8 smartd or man 5 smartd.conf for further # information. # # $Id: Example2 3958 2014-07-18 19:13:32Z chrfranke $ # Save the email message (STDIN) to a file: cat > /root/msg # Append the output of smartctl -a to the message: /usr/sbin/smartctl -a -d $SMARTD_DEVICETYPE $SMARTD_DEVICE >> /root/msg # Now email the message to the user. Solaris and # other OSes may need to use /usr/bin/mailx below. /usr/bin/mail -s "$SMARTD_SUBJECT" $SMARTD_ADDRESS < /root/msg
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