I would prefer the error handling do more than just abort the script if a command fails, but I don't have a solution on how to do that. That part is up to Mikrotik.
It would be handy to "call" scripts (stop execution on main script until child script is complete) rather than just execute them. But there would need to be better error handling or it would fail also when the child script aborts.
Add: Unless the child script returns to the parent script on abort and started executing commands there again. I would be ok with that.
Like this
:global done
:set done false
:call myScript
:if(!$done) do={
// now you know it did not finish, but aborted.
// so do what you do on a fail
}
This would be myScript
:global done
// do the stuff that might abort here
// If it aborts, that is the same as "return false"
// then last thing (equivalent of "return true")
:set done true
And I agree that the wiki docs could use some updating.
Thanks for karma.
Yes, this is the "Redneck Riviera". It is not as redneck as it was when I got here in 1986, but I know what you mean.
The military still flies around here, but since the area is no longer considered "sparsely inhabited", the jets can't fly that low here now. I was assigned to Fort Rucker in 1969, and flew Hueys and Chinooks up and down this beach. There was nothing here then.
Military aircraft are not the only low fliers here. Check this out:
http://www.thedestinlog.com/sections/ar ... =0&id=5297
This airplane is stuck into the side of the building about 30' below my backhaul router on the roof.