How to add a weekly task schedule
I have tried:
# # This adds a weekly schedule. # %trig=( 'BeginYear' => 2003, 'BeginMonth' => 8, 'BeginDay' => 5, 'StartHour' => 10, 'StartMinute' => 10, 'TriggerType' => $scheduler->TASK_TIME_TRIGGER_WEEKLY, 'Type'=>{ 'WeeksInterval' => 1, 'rgfDaysOfTheWeek' = TASK_SUNDAY | TASK_WEDNESDAY | TASK_FRIDAY, }, );
why this is not working
Maybe:
$scheduler->TASK_SUNDAY and so on?
HTH, Umberto
thanks, i have figure it out, inside 'Type' should be for example:
'Type'=>{ 'WeeksInterval' => 2, 'DaysOfTheWeek' => TASK_SUNDAY, },
Log in to post a comment.
How to add a weekly task schedule
I have tried:
#
# This adds a weekly schedule.
#
%trig=(
'BeginYear' => 2003,
'BeginMonth' => 8,
'BeginDay' => 5,
'StartHour' => 10,
'StartMinute' => 10,
'TriggerType' => $scheduler->TASK_TIME_TRIGGER_WEEKLY,
'Type'=>{
'WeeksInterval' => 1,
'rgfDaysOfTheWeek' = TASK_SUNDAY | TASK_WEDNESDAY | TASK_FRIDAY,
},
);
why this is not working
Maybe:
$scheduler->TASK_SUNDAY and so on?
HTH,
Umberto
thanks,
i have figure it out, inside 'Type' should be for example:
'Type'=>{
'WeeksInterval' => 2,
'DaysOfTheWeek' => TASK_SUNDAY, },