New course! Every coder should learn Generative AI!
Try a free lesson2 Answers
+ 1
As far as I understand, this is how you do it:
from crontab import CronTab
cr = CronTab(user="username")
# Then simply iterate over cr
for cron_event in cr:
# do whatever
0
thanks man