Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15394

Scripting • Re: if / else in telnet

$
0
0
Will not work since the output are sent to a the console and not to a variable.

Test this: (cut & past to a terminal window)
Code:
{:local test [/system telnet  192.168.7.25 80]:put "Text should come after this":put "===========================":put $test}
1. Text are not written to the variable test
2. For my web server it takes 30 seconds for the time out to come so script des continue.

Statistics: Posted by Jotne — Tue Feb 13, 2024 9:44 am



Viewing all articles
Browse latest Browse all 15394

Trending Articles