Tim, I have finally had enough time to have a look at the code, and this change is easy to implement. I completely agree that it is a useful feature, since it allows for shorter notation of times. Therefore I'll try to release a separate version soon that has this feature built in.
In addition, the Calendar rule documentation also needs some additions - if vixie cron sees non-asterisk definitions for date and weekday, it will (at least according to its manual) logically OR them together, while this is not the case for SEC (conditions are always joined by AND). IMHO, SEC's AND-behavior is highly useful -- e.g., the expression "0 1 25-31 10 7" allows for executing a specific command at the moment when the daylight savings time is replaced with the normal time (last Sunday in October, 01:00 UTC). with kind regards, risto ------------------------------------- hi Tim, I will look into this and check whether it is something that can be implemented without larger issues. best regards, risto Tim Peiffer wrote: > May I have a feature check or request for SEC ? > > I would like to use the '/' in a calendar time and date fields to make > it compatible with the cron that Paul Vixie wrote. I wish to have > calendar functions that are addressable in steps. The format '*/5 * * * > * is much more compact than stating '0,5,10,15,20,25,30,35,40,45,50,55 * > * * *' > > type=Calendar > time=*/5 * * * * > desc=examine my piggy bank resources > action=spawn /usr/local/bin/CheckPiggyBank > > Excerpt from crontab(5). > Step values can be used in conjunction with ranges. Following a range > with ‘‘/<number>’’ specifies skips of the number’s value through the > range. For example, ‘‘0-23/2’’ can be used in the hours field to spec- > ify command execution every other hour (the alternative in the V7 stan- > dard is ‘‘0,2,4,6,8,10,12,14,16,18,20,22’’). Steps are also permitted > after an asterisk, so if you want to say ‘‘every two hours’’, just use > ‘‘*/2’’. > ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Simple-evcorr-users mailing list Simple-evcorr-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users