yo8192 / fcron

fcron is an advanced cron for Linux/Unix systems
http://fcron.free.fr
GNU General Public License v2.0
131 stars 12 forks source link

Combining elapsed time & timer period limitations? #16

Closed MabezDev closed 2 years ago

MabezDev commented 2 years ago

Hi,

Thanks for your work on fcron!

I have been pooring over the docs, and testing some setups locally but can't seem to get fcron to do what I'd like it to.

Goal

After X elapsed time, run a script in a given time window.

Example

I haven't been able to find the magic incantation to get this working (hopefully its possible!), I am hoping you could point me in the right direction.

Thanks!

yo8192 commented 2 years ago

Hi @MabezDev,

I am afraid fcron jobs are defined based on elapsed time XOR time of the day, but not both.

To do what you are after, I think you would have to be a bit more creative with the job scheduled based on one, and then doing the other check in the job itself, i.e.:

MabezDev commented 2 years ago

Ah, that's a shame!

Thanks for the workarounds, I'll see what I can do.