It is currently Fri May 24, 2013 5:22 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed May 02, 2012 2:29 pm 
Offline
Adept Poster

Joined: Fri Nov 07, 2008 3:47 am
Posts: 87
This is a small implementation for schedule witch automatic start scripts. I appreciate if any poldev check if is correct the way i used for launch scripts and the 60 sec wait between cycles. The file lives inside pol/config, follow the documentation:

Name [optional] -> a name for this task (any string, default "no label").
Day [optional] -> the specific launch day for this task (1 ... 31, default: 0).
Month [optional] -> same as above, but for month (1 ... 12, default: 0).
Week [optional] -> day of week for launch this task (mon, tue, wed, thu, fri, sat, sun, weekday, weekend, default: all).
Min [optional] -> minutes for launch this task (0 ... 59, default: 0).
Repeat [optional] -> if false, only run once for each pol start (1/0, default: 1).
Critic [optional] -> if true, the script run in critical mode (1/0, default: 0).
Startup [optional] -> if true, this task will launch after pol startup (like others start.ecl), repeat are always 0 for startup task.
Hour -> what time launch this task (0 ... 23).
Script -> script to be launch in this task.

Example:
Schedule
{
Name Champion Respaw
Week fri weekend
Hour 22
Script :mypackpage:respaw_champion
}

Schedule
{
Name My Dally Custom Event
Hour 19
Min 30
Script :mypackpage:my_event_script
}


Attachments:
shedule_scripts.patch [9.21 KiB]
Downloaded 60 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group