Hello everyone,
I'm working on a company which works with Mikrotik devices and I'm struggling with its scripting language so much.
What I need to do is reboot the device whenever an SMS is sent to it. The SMS will work out like a password, so, whenever the devices sees an incoming SMS, it'll reboot by itself (regardless the text on the SMS).
I already have my script named "reboot" set as /system reboot
I also read the docs regarding running a script when an SMS is sent, but no success
What I tried, though, was: :cmd password script reboot, but I get weird msgs like "bad command name cmd(line 1 column 2)
Apart from all that, I thought of doing the following: Check the inbox, if SMS counter > 0, /system reboot, but I have no idea of how to implement it
Can someone please help me out?
Any help is appreciated.
Thank you very much