example3
来自「硬盘各项性能的测试,如温度容量版本健康度型号」· 代码 · 共 26 行
TXT
26 行
#! /bin/bash## 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,v 1.4 2003/08/17 09:15:56 ballen4705 Exp $# Warn all users of a problem wall 'Problem detected with disk: ' "$SMARTD_DEVICESTRING" wall 'Warning message from smartd is: ' "$SMARTD_MESSAGE" wall 'Shutting down machine in 30 seconds... '# Wait half a minutesleep 30 # Power down the machine (uncomment the shutdown command if you really# want to do this!)# /sbin/shutdown -hf now
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?