Code: Select all
:local result [/tool fetch http-method=post port=80 keep-result=no url="xxxxxxxxxxxxxxxx"];
:if ($result->"status" = "finished") do={
/interface ethernet set ether4 disabled=no;
} else={
/interface ethernet set ether4 disabled=yes;
}
so i just try check the command in terminal
Code: Select all
/tool fetch http-method=post port=80 keep-result=no url="xxxxxxxxxxxxxxxx"
how to get those "downloaded" result as an variable to get the script works ?sep/14 05:57:47 info fetch: file "post" downloaded