diff --git a/nutNotifyFct.sh b/nutNotifyFct.sh index 9243dcb..cb3ecab 100644 --- a/nutNotifyFct.sh +++ b/nutNotifyFct.sh @@ -54,7 +54,8 @@ function sendSms { textSms=$(echo $textSms | sed -e 's/ /%20/g' | iconv -t iso-8859-1) - url="https://www.$providerSms/myaccount/sendsms.php?username=$usernameSms&password=$passwordSms&from=$fromSms&to=$toSms&text=$textSms" + #url="https://www.$providerSms/myaccount/sendsms.php?username=$usernameSms&password=$passwordSms&from=$fromSms&to=$toSms&text=$textSms" + url="https://www.ovh.com/cgi-bin/sms/http2sms.cgi?&noStop=1&account=$accountSms&login=$usernameSms&password=$passwordSms&from=$fromSms&to=$toSms&message=$textSms" tempfile=$(tempfile -p 'nutNotifySms-') curl -s -o $tempfile $url result=$(cat $tempfile | grep '' | awk -F "[<>]" '{print $3}') @@ -236,3 +237,4 @@ function conditionalNotification { fi } +