[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cronjob regarding holidays?



Den 20. des. 2012 14:22, skrev Ralf Gesellensetter:
> Dear list,
> 
> now, our school closes for approx. 2 weeks, hence
> I had to stop some cronjobs that are responsible
> to wake up our displays (wake on lan) each morning.
> 
> Of course, I have to remember reacticating them
> in January. Hence I wonder if there is any approved
> approaches / extensions to cronjobs, that would
> make it easy to state dates for hols in a file to
> be regarded by our cronjob?

Make the cronjob check a flag.
if flag exists, run a cronjob
remove flag when holidays starts, create flag when holidays ends
This could be done using a cronjob :)

// faj


Reply to: