Community discussions

MikroTik App
 
hci
Long time Member
Long time Member
Topic Author
Posts: 674
Joined: Fri May 28, 2004 5:10 pm

System Scheduler and Scripts

Fri May 20, 2022 5:02 pm

I have a system scheduler with multiple lines like this running hourly or so:

/tool fetch url="https://some_ipv6_only_url_tec_dot_com.co" keep-result=no
/tool fetch url="https://some_other_url_tec_dot_com.co" keep-result=no
/tool fetch url="https://some_another_tec_dot_com.co" keep-result=no

There for updating dynamic DNS etc. but it seems as though if it fails to get the first URL say IPv6 is down at moment the other lines on down do not run. Does that make sense? Is there way to make sure all the lines in the scheduler script run even if there is an error on first line? Its not really a code error it just could not retrieve URL.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: System Scheduler and Scripts  [SOLVED]

Fri May 20, 2022 5:20 pm

:exec "/tool fetch url=\"https://some_ipv6_only_url_tec_dot_com.co\" keep-result=no"
:exec "/tool fetch url=\"https://some_other_url_tec_dot_com.co\" keep-result=no"
:exec "/tool fetch url=\"https://some_another_tec_dot_com.co\" keep-result=no"
 
hci
Long time Member
Long time Member
Topic Author
Posts: 674
Joined: Fri May 28, 2004 5:10 pm

Re: System Scheduler and Scripts

Fri May 20, 2022 5:35 pm

That fixed it. Thanks.

Who is online

Users browsing this forum: No registered users and 30 guests