I want to send SMS for triggers with via api . as you can see I am using follow script but it cannot send sms when there is Space in trigger alarm (All times we have space in trigger alarm) for example when trigger alarm is : /usr space is more than 90% it cannot send it . I think had to change in curl command or script to solve the issue would you please help me about it? Also I did all configure in media type and ... just the problem is with SPACE character .
msg="$1"
numbers=('123456789')
for sms in "${numbers[@]}"; do
curl -i "http://SMS-SERVER-IP-ADDRESS:PORT-Number/sms?src=Source-Number&dest=$sms&msg=$msg&apikey=MY-API-KEY"
done
msg="$1"
numbers=('123456789')
for sms in "${numbers[@]}"; do
curl -i "http://SMS-SERVER-IP-ADDRESS:PORT-Number/sms?src=Source-Number&dest=$sms&msg=$msg&apikey=MY-API-KEY"
done
Comment