scripts not running unless from terminal

But I already see this script… is familiar…

It’s one of my scripts!!! :wink:

http://forum.mikrotik.com/t/create-an-address-list-from-a-text-file/77741/3



If you provide on the file one list of IP like

1.1.1.1,2.2.2.2,3.3.3.3,4.4.4.4, etc.

you can alter the script for be more simple:

:local arrayofip value=[:toarray [/file get [/file find where name="Iptest.txt"] value-name=contents]];
:foreach ip in=$arrayofip do={
 /system ssh address=$ip port=22 user=admin command="/system reboot;\r\ny\r\n" output-to-file=tmp;
 /delay delay-time=10s;
};

Use one reasonable time between SSH commands.