cron job to detect dongle status
用左 3G dongle 幾個月..
發現, 佢隔一排, 可能兩三日就detect唔到枝usb..
重點係..... 我根本唔知.
而家想寫個cron job check下枝dongle仲係咪online, 唔係的話就email我同reboot.
但係 asterisk -rx "dongle show devices" | grep Free | grep dongle0
係我用root既console可以正常return value..
但係放左入cron job 就完全冇return..
點解呢.... |