Hey All,
Attempting to use the PHP API (the one in the wiki) to run the tool/fetch command.
The command works great, and I am able to fetch a file. Unfortunately, doing anything after the command is impossibl.
It seems that the API read command keeps pulling the status even when the download is finished. It’s just repeating (“status=finished”) over and over again. This locks up my program. Is the PHP API just reading the same message over and over again, or is the Mikrotik API actually outputting this? When running the command in the terminal, it just terminates when status=finished, so why wouldn’t the API do the same?
I’ve tried this on 3.30, 5.2 and 5.5.
So my question is: how do I terminate the repetitive updates after tool/fetch and continue on with my API scripting?
Thanks for any help ![]()