How to execute a cmd command with a script?

I would like to reboot my network camera periodically by executing the following URL:
http://admin:password@192.168.0.5/form/reboot
Can i write a script in RouterOs that would execute the above URL (reboot the network camera), and how to do it?

Thanks for help

Lookup the fetch command. You can write a script with a single line that basically just fetches that URL… use scheduler to schedule when you want to reboot it.

try this
/tool fetch mode=http url=192.168.0.5/form/reboot user=admin password=password

Cool, it worked. Is there something like a “sleep” or “wait” command, i would like to wait 30min and then reboot the second camera with the same script .

Thanks

Why not just make a second script? But yes. I think it’s called delay, but checkout the scripting article in the wiki.

Sent from my SCH-I545 using Tapatalk 4

ok. Thank you