Community discussions

MikroTik App

Search found 2 matches

by Drizzt
Fri Jan 15, 2016 4:11 pm
Forum: Scripting
Topic: Hanging SSH session
Replies: 0
Views: 844

Hanging SSH session

I am using scripts to update my firewall blacklists from a server every 15 minutes. I am using ssh commands to push the updates on my routers. The ssh client cleanly disconnects from the routers, but I can see in /users active that the session is still active on my mikrotiks. I even added "/qui...
by Drizzt
Thu Feb 19, 2015 12:40 am
Forum: Scripting
Topic: a script to save an IP-List
Replies: 19
Views: 36912

Re: a script to save an IP-List

Scrip to read the txt file and import it back into a dynamic list. if ( [/file get [/file find name=dynamic.txt] size] > 0 ) do={ :global content [/file get [/file find name=dynamic.txt] contents] ; :global contentLen [ :len $content ] ; :global lineEnd 0; :global line ""; :global lastEnd ...