I am not sure if this is possible or not but I am trying to do the following.
I have a file on an ftp server that has scripts in it. I want the mikrotik to download this file and then execute the scripts within the file.
It might be worth noting that the script does not execute immediately upon upload.better use aut.rsc feature - using ftp you can upload file called <something>.auto.rsc
script file will be automatically executed and log file for that will be saved on the router.
Yes, I also have this problem, posted problem here: http://forum.mikrotik.com/viewtopic.php?f=9&t=62261We are uploading the auto.rsc scripts via ftp ... but very often the file is not executed, instead of that the log shows "ppp script error: input does not match any value of file-name"
If we upload it again it is executed.. someone else having this problem also?
{
:global ftpserver
:global usrnme
:global passwd
:global pckgname
:set pckgname ("upgrade.rsc")
:set ftpserver "10.254.253.254"
:set usrnme "admin"
:set passwd "abcxyz123"
:if ([:len [/file find name="upgrade"]] = 0) do={:log error "Downloading Upgrade File - $pckgname";/tool fetch address="$ftpserver" src-path="$pckgname" user="$usrnme" password="$passwd" mode=ftp;/import upgrade.rsc} else={:log error "No Upgrade File Found";}
}