Community discussions

MikroTik App

Search found 6 matches

by rssreader
Sun Mar 07, 2021 3:56 pm
Forum: Scripting
Topic: Why command "fetch" doesn't wait for output?
Replies: 11
Views: 9851

Re: Why command "fetch" doesn't wait for output?

it also doesn't work
only "start" appears in the log:
:local cronUrl "https://xxxxxxxxxxxxx.php";
:log info "start";
:local result [ :tool fetch url=$cronUrl as-value output=user ];
:log info "finish";
by rssreader
Wed Jul 01, 2020 8:32 am
Forum: Scripting
Topic: Why command "fetch" doesn't wait for output?
Replies: 11
Views: 9851

Re: Why command "fetch" doesn't wait for output?

like this ?: :local cronFile "result.log"; :local cronUrl "https://www.xxxxxxx.xx/xxxxxxxxxxxxx.php"; :delay 5s; :tool fetch url=$cronUrl dst-path=$cronFile; :delay 10s; :local cronResult [/file get $cronFile contents]; :if ( $cronResult != "OK") do={ /tool e-mail send ...
by rssreader
Wed Apr 15, 2020 11:08 pm
Forum: Scripting
Topic: Why command "fetch" doesn't wait for output?
Replies: 11
Views: 9851

Re: Why command "fetch" doesn't wait for output?

Of course I know that. That's not the problem. Here is my code: :local cronFile "result.log"; :local cronUrl "https://www.xxxxxxx.xx/xxxxxxxxxxxxx.php"; :tool fetch url=$cronUrl dst-path=$cronFile; :local cronResult [/file get $cronFile contents]; :if ( $cronResult != "OK&qu...
by rssreader
Wed Apr 15, 2020 11:54 am
Forum: Scripting
Topic: Why command "fetch" doesn't wait for output?
Replies: 11
Views: 9851

Why command "fetch" doesn't wait for output?

I use the "fetch" command to run PHP scripts on my web server using a URL call. PHP script generates large data (XML) - it takes a long time. The output is only "OK" when finished. However, the fetch command does not wait for "OK". Is it possible to set a timeout for fe...
by rssreader
Mon Jul 10, 2017 10:47 am
Forum: Announcements
Topic: v6.38.7 [bugfix] is released!
Replies: 24
Views: 29076

Re: v6.38.7 [bugfix] is released!

100% CPU and can't connect How do you know that CPU is at 100% if you cant connect? And if you can somehow see this could you also check what is hogging CPU? Anyways it may be some DOS attack issue, my advice would be, if you have one spare port, to disconnect router from the network and plug only ...
by rssreader
Mon Jul 03, 2017 4:11 pm
Forum: Announcements
Topic: v6.38.7 [bugfix] is released!
Replies: 24
Views: 29076

Re: v6.38.7 [bugfix] is released!

BUG on RB751U-2HnD with latest firmware (auto-upgraded before auto-upgrade RouterOS - without problem). After auto-upgrade RouterOS 6.38.7 (Bugfix only) - 100% CPU and can't connect via Winbox/Web interface/SSH/Telnet - nothing. The Internet passes through, the web interface works but can not log in...