Community discussions

MikroTik App
 
ONYX
just joined
Topic Author
Posts: 15
Joined: Tue Jul 12, 2011 11:27 am

Run script only working day

Wed Jul 13, 2011 12:01 pm

i need some scripts run from mon to fri only! and sat & sun run another scripts.
anyone help....Please! :)
 
User avatar
petrn
Member Candidate
Member Candidate
Posts: 180
Joined: Thu Jul 29, 2010 3:56 am
Location: Dubai

Re: Run script only working day

Wed Jul 13, 2011 2:08 pm

i need some scripts run from mon to fri only! and sat & sun run another scripts.
anyone help....Please! :)
Just ideas:
1. Find/create: http://<FQDN>/is-today-working-day and use /tool fetch url=http://<FQDN>/is-today-working-day at beginning of script to test if run or skip rest ...
2. Run daily script at 00:00 and bootup to calculate/fetch day of week/working day info and store it in global variable, scripts can test it
3. thousand more ways ....
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Run script only working day

Wed Jul 13, 2011 3:37 pm

Make 7 schedulers, one for Monday with frequency set to 7 days, another one for Tuesday with frequency set to 7 days, and so on.
 
User avatar
petrn
Member Candidate
Member Candidate
Posts: 180
Joined: Thu Jul 29, 2010 3:56 am
Location: Dubai

Re: Run script only working day

Wed Jul 13, 2011 3:50 pm

Make 7 schedulers, one for Monday with frequency set to 7 days, another one for Tuesday with frequency set to 7 days, and so on.
brute-force (more accurately brute-scheduler) solution :-D
 
ONYX
just joined
Topic Author
Posts: 15
Joined: Tue Jul 12, 2011 11:27 am

Re: Run script only working day

Thu Jul 14, 2011 6:48 am

i need some scripts run from mon to fri only! and sat & sun run another scripts.
anyone help....Please! :)
Just ideas:
1. Find/create: http://<FQDN>/is-today-working-day and use /tool fetch url=http://<FQDN>/is-today-working-day at beginning of script to test if run or skip rest ...
2. Run daily script at 00:00 and bootup to calculate/fetch day of week/working day info and store it in global variable, scripts can test it
3. thousand more ways ....

Thank! :-D
 
ONYX
just joined
Topic Author
Posts: 15
Joined: Tue Jul 12, 2011 11:27 am

Re: Run script only working day

Thu Jul 14, 2011 6:50 am

Make 7 schedulers, one for Monday with frequency set to 7 days, another one for Tuesday with frequency set to 7 days, and so on.

Thank! :D
 
dssmiktik
Forum Veteran
Forum Veteran
Posts: 732
Joined: Fri Aug 17, 2007 8:42 am

Re: Run script only working day

Fri Jul 15, 2011 1:53 am

Who is online

Users browsing this forum: No registered users and 38 guests