Server IP : 192.168.23.10 / Your IP : 3.142.252.147 Web Server : Apache System : Linux echo.premieradvertising.com 5.14.0-362.8.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 7 14:54:22 EST 2023 x86_64 User : rrrallyteam ( 1049) PHP Version : 8.1.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF Directory (0755) : /sbin/../share/automake-1.16/../doc/libtiff/../smartmontools/examplescripts/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
#! /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