Menu

weekly task

2003-08-05
2003-08-18
  • Nobody/Anonymous

    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

     
    • Umberto Nicoletti

      Maybe:

      $scheduler->TASK_SUNDAY  and so on?

      HTH,
      Umberto

       
    • Nobody/Anonymous

      thanks,
      i have figure it out, inside 'Type' should be for example:

                              'Type'=>{
                                  'WeeksInterval' => 2,
                                  'DaysOfTheWeek' => TASK_SUNDAY,                        },

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.