I want If the uptime was more than 1 minute, execute this command
/tool fetch url="https://api.telegram.org/bot6674120664: ... text=T1-Up"
I don't want it to run late. I want the command to be executed with the condition that the uptime is more than one minute. That is, if the uptime was less, the command would not be executed.Make script - on startup
First line: delay 60
And then your line.
I want use in netwach !Delay will take care of that.
No need to complicate things....
What's the difference between checking in a loop until one minute has passed or simply waiting 1 minute ?
What do you think is easier ?
The result is the same....
In netwatch, at least in RouterOS v7 you can specifiy a start delay and a startup delay in the netwatch command.The difference is that the command is executed after a delay!
I want the command not to be executed if the up time was less
Note: if scheduler item has start-time set to startup, it behaves as if start-time and start-date were set to time 3 seconds after console starts up. It means that all scripts having start-time is startup and interval is 0 will be executed once each time router boots. If the interval is set to value other than 0 scheduler will not run at startup
I already had the feeling too I saw this recently with the same reluctance to accept the answer....Why do I have this deja vu feeling?![]()
Same poster, same question, same answers:
viewtopic.php?t=209273
:if ([/system resource get uptime] > 00:01:00) do={:put "yes"}
Already wroted,Seems like a roundabout way to go about it, having to go to an external URL
Can achieve the same internally without reaching out to an external source