Scheduler

Router: CCR1009
Firmware: 6.42rc35

Question: Scheduled event will not work at time slot selected – WHY?
The script work if I manually invoke it but the Scheduler will not fire it at time selected – WHY?
Script:

/file remove [find name="spamhaus.rsc" or name="dshield.rsc" or name="malc0de.rsc"];log info "Remove  Joshaven files"

script.GIF
the Scheduler:
schedule.GIF

What policies are set for script?

The pictures I posted show the polices ??? is there some other policies I should be aware of?

I have 8 other scripts that I have the scheduler run and they all work just fine … why the one I posted about does not fire by scheduler ???

Try it with in the On Event box.

/system script run removefiles

@msatter
Thank you for the workaround … your suggestion worked.

When you tested it manually you where already in the “/system script” menu section so the “removefiles” is selectable.

When a schedule is executed is not in the /system script section so the schedule does not find the script.

When writing a script and schedule always be aware where are or calling from.

@msatter
Thank you for the added information … very helpful indeed !

The problem and solution are not clear to me here.
If a script is properly formatted as his seemed to be and the the schedule properly formatted as his seemed to be,(other than he has rmon selected which I have not used yet).
what is this about /system script run ???

On Winbox there is no such beast.
We make a script rule in SYSTEM SCRIPT
We make a Schedule in SYSTEM SCHEDULE
IT WORKS!

To test the script you navigate to /system script and you start your schedule. It works because you are on the moment where the scripts are.

When you start schedule by the timer then you are not in the /system script part so your script is not found.

That is why you have to specify where your script is situated.

Also remember that the timer started schedule is not run in the Winbox when you are not logged in.

Msatter, I am no further ahead with your latest explanation.
You are assuming knowledge I dont have.

I have added scripts with schedules that work just fine.
I have never used /system script or anything else.
My timers work fine when I am not logged in.

THus, your explanation is lost on me.

If you meant to say, that someone created rules manually, via the terminal lets say, and put them into the wrong section of the Config File, then perhaps what you are saying makes more sense.
In other words, making up scripts manually, also requires putting them in the correct location amongst all the other rules.

As I noted above, not experience and that is perhaps, just guessing, doing it by WINBOX automates the placement of scripts and schedules in the right locations???

I don’t have the knowledge because I did not designed and wrote RouterOS but I know that you have to be specific when calling a script and inside a script. Otherwise you a long time finding out why it does not work when you get a problem as the TS had.

If you want to know what exactly is the cause of this the you have to ask support and hope that they have an explanation.