how to run a script every sunday

I have a script which enables a list of ppp users and another to disable the users…i run these scripts enable@19:00 and disable@09:00…

Now i want to run a script every sunday to enable users…how can i do this…

‘System scheduler’ is designed for it.

But system scheduler has start-time and repeat interval. How to tell it the day of week ?

But system scheduler has start-time and repeat interval. How to tell it the day of week ?

Scheduler has also start-date parameter. Choose a date that is Sunday and interval of 7 days.

Eugene

Since one takes control of the month of February in leap year years for example. Excuses by my English!

Example:

start-date=12/03/2006
interval=168:00:00

Would start this Sunday and run ever 7 days from that point on.

is there no sunday in february? sundays are always 7 days from another!

I realized error, excuses. Nevertheless it follows without working script


[admin@ConectAR] system scheduler> pr
Flags: X - disabled

NAME ON-EVENT START-DATE START-TIME INTERVAL RUN-COUNT

0 P2PEnabled P2P-Noche nov/27/2006 21:00:00 1d 0
1 PlanNocheEna PlanNocheEnabled nov/27/2006 21:00:00 1d 0
2 P2PDisabled P2P-Dia nov/27/2006 07:00:00 1d 2
3 PlanNocheDis PlanNocheDisabled nov/27/2006 07:00:00 1d 0
4 StartWeekend StartWeekEndScript dec/01/2006 21:00:00 1w 0
5 StartWeek StartWeekScript dec/04/2006 07:00:00 1w 0
4 StartWeekend StartWeekEndScript dec/01/2006 21:00:00 1w 0


[admin@ConectAR] system> script pr

7 name="PlanNocheEnabled" owner="admin" policy=reboot,read,write,test,winbox,password last-started=nov/28/2006 21:27:48
run-count=1 source=
/inter wire acce ena [/inter wire acce find comment="Fabio"];
/inter wire acce ena [/inter wire acce find comment="Gertner"];
/inter wire acce ena [/inter wire acce find comment="Perdiz"];

8 name="PlanNocheDisabled" owner="admin" policy=reboot,read,write,test,winbox,password last-started=nov/28/2006 08:13:03
run-count=9 source=
/inter wire acce dis [/inter wire acce find comment="Fabio"];
/inter wire acce dis [/inter wire acce find comment="Gertner"];
/inter wire acce dis [/inter wire acce find comment="Perdiz"];

9 name="P2P-Dia" owner="admin" policy=reboot,read,write,test,winbox,password last-started=nov/28/2006 23:10:40 run-count=>
source=
/ip fir filt ena [/ip fir filt find comment="WAREZ BLOCK"];
/ip fir filt ena [/ip fir filt find comment="BIT-TORRENT BLOCK"];
/ip fir filt ena [/ip fir filt find comment="P2P BLOCK"];
/ip fir filt dis [/ip fir filt find comment="EMULE ACCEPT"];
:foreach I in=[/queue tree find name="P2P-Out"] do={
/queue tree set $I max-limit=128000}

10 name="P2P-Noche" owner="admin" policy=reboot,read,write,test,winbox,password last-started=nov/28/2006 21:28:05
run-count=2 source=
/ip fir filt dis [/ip fir filt find comment="WAREZ BLOCK"];
/ip fir filt dis [/ip fir filt find comment="BIT-TORRENT BLOCK"];
/ip fir filt dis [/ip fir filt find comment="P2P BLOCK"];
/ip fir filt ena [/ip fir filt find comment="EMULE ACCEPT"];
:foreach I in=[/queue tree find name="P2P-Out"] do={
/queue tree set $I max-limit=768000}

11 name="StartWeekScript" owner="admin" policy=reboot,read,write,test,winbox,password run-count=0
source=
/system scheduler ena P2PDisabled;
/system scheduler ena P2PEnabled;
/system scheduler ena PlanNocheDis;
/system scheduler ena PlanNocheEna;

12 name="StartWeekEndScript" owner="admin" policy=reboot,read,write,test,winbox,password run-count=0
source=
/system scheduler dis P2PDisabled;
/system scheduler dis P2PEnabled;
/system scheduler dis PlanNocheDis;
/system scheduler dis PlanNocheEna;


:blush: