D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
usr
/
share
/
doc
/
smartmontools
/
examplescripts
/
Filename :
Example3
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 <nomailer> -M exec /path/to/this/file # # Please see man 8 smartd or man 5 smartd.conf for further # information. # # $Id: Example3 3958 2014-07-18 19:13:32Z chrfranke $ # Warn all users of a problem wall <<EOF Problem detected with disk: $SMARTD_DEVICESTRING Warning message from smartd is: $SMARTD_MESSAGE Shutting down machine in 30 seconds... EOF # Wait half a minute sleep 30 # Power down the machine (uncomment the shutdown command if you really # want to do this!) # /sbin/shutdown -hf now
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