lgq
2025-07-16 46c721122f60175f6925c7c38d1fddab65063fc0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# send email 
#*****************************************************
export PATH=$PATH:/usr/sbin:/usr/bin:/bin:/sbin
 
mail=/usr/local/bin/mail
 
mailList=`sqlite3 /work/iot_cfg.db "select emailNo from alarm"`
 
msg=$1
echo "send mail to $mailList msg: $msg" > /tmp/log
 
$mail -to $mailList -m "$msg" -d true