 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
wmweaver2
Joined: 29 Oct 2007 Posts: 111 Country: United States |
|
Time job runs in the schedule daily or weekly |
|
Can we use wildcards for time? will *:05 or **:05 run at five minutes after every hour? The reason I ask is i have a job that needs to run mon-fri at 5 minutes after. The all day doesnt have a day selection and the daily and weekly makes you enter all the times so i would have to create a comma seperated list of 24 hours. i would prefer to use the wildcard is why i am asking I can create new calendars and use the calendar on all day option
|
|
Tue Mar 11, 2008 5:14 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7949
|
|
|
|
No you cannot do it this way, but you can still use All Day schedule and setup 1 hour time interval for the job recurrence. For the first start time enter 00:05. For the job type select JavaScript or shell script. In the script have a "if" condition for the system time, for example
 |
 |
var today=new Date(); // Initialize Date object
var day = today.getDay(); // Get Day of Week
if (day > 0 && day < 6) // Monday to Friday run the backup
var pid = Process.run("/bin/cp /home/data /home/backup"); |
|
|
Tue Mar 11, 2008 6:12 pm |
|
 |
|
|
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 vote in polls in this forum
|
|
|