Community discussions

MikroTik App
 
3BABY
just joined
Topic Author
Posts: 22
Joined: Fri Aug 20, 2010 3:44 am
Location: New Zealand

Problem with Scheduler Running Script.. HELP please

Mon Mar 07, 2011 2:53 am

Hi Guys,

i have created a script and when i click "Run Script" from inside winbox it works fine.. so i have now created a schedule to run this script.. but its not working.. for testing i have set the interval to 20 seconds.. i can see the run count inside the scheduler window going up.. but its not running the "21_DAILY_REPORT_AK" script..

any help would be much appreciated

Image
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Problem with Scheduler Running Script.. HELP please

Mon Mar 07, 2011 3:15 am

Check all the policies required for the script to run scheduled. When in doubt, check them all. According to the screenshot you posted all policy permissions are denied right now (no checkmarks are showing at all).
 
3BABY
just joined
Topic Author
Posts: 22
Joined: Fri Aug 20, 2010 3:44 am
Location: New Zealand

Re: Problem with Scheduler Running Script.. HELP please

Mon Mar 07, 2011 3:56 am

Check all the policies required for the script to run scheduled. When in doubt, check them all. According to the screenshot you posted all policy permissions are denied right now (no checkmarks are showing at all).
Thankyou very much :-) i ticked the write policy and the scheduler works now... its a pity i couldnt find any documentation on the policy's in the scheduler ..

thanks for your reply
 
3BABY
just joined
Topic Author
Posts: 22
Joined: Fri Aug 20, 2010 3:44 am
Location: New Zealand

Re: Problem with Scheduler Running Script.. HELP please

Mon Mar 07, 2011 5:47 am

just on another note... im having a problem trying to run a script from another script.. i cant seem to work out the "run script XXX" command

i have =>


:local runner 1

:if ([$runner] = 1) do={ system scripts run USAGE_REPORT_TEST1 }





but its not running "USAGE_REPORT_TEST1" script.. any ideas?
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Problem with Scheduler Running Script.. HELP please

Mon Mar 07, 2011 5:51 am

Can't say I have tried, but maybe this will work:
:if ([$runner] = 1) do={ /system scripts run [/system scripts find name="USAGE_REPORT_TEST1"] }