標題:
有兩句野諗左好耐
[打印本頁]
作者:
mcdull
時間:
2020-7-13 00:56
標題:
有兩句野諗左好耐
其實應該好簡單,就係腦閉塞, 解唔開/
same = n,Set(foo=${BASE64_DECODE(${SMS_BASE64})})
same = n,System(echo "${foo}\n\nDongle Name: ${DONGLENAME}\nDongle Number:${DONGLENUMBER}\nDongleIMEI: ${DONGLEIMEI}\nFrom number: ${SMS_NUMBER}\nReceive Time:${STRFTIME(${EPOCH},Hongkong,%Y-%m-%d %H:%M:%S)}" | mailx --content-type "text/plain\; charset=utf-8" -r "abc@gmail.com" -s "SMS received from ${SMS_NUMBER} on ${STRFTIME(${EPOCH},Hongkong,%Y-%m-%d %H:%M:%S)}" abc@gmail.com)
複製代碼
係extenstions.conf 裡面收左SMS call 既兩行.
第一句係收 SMS, 當已經攪掂晒...
主要係第二句, echo 出來send去 gmail. 但係如果段SMS入面係有 $ 符號佢就會攪晒龍, 好啲就唔見左, 唔係就call左啲system variable出來..
有冇計諗?
作者:
mcdull
時間:
2020-7-13 01:04
唔通用 single quote 就解決?
我之前試過唔得, 但頭先試又好似得得地... 唉.
歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/)
Powered by Discuz! 7.2