I have a Linux host which I would like to have a cron job run on. I do not shut down this machine. I always suspend it. I want to run a job once a day and I cannot set it for a particular time since my machine may or may not be running. I would like a cron job the first time a day when my machine comes live and not anymore throughout the day. Is that possible? Please do let me know, Thanks!


1 Answer 1


This is handled by anacron, which runs the default cron.daily etc. jobs on Fedora.

If this is a root job, you can either add it to the /etc/cron.daily or to /etc/anacrontab.

  • Just looked it up. Exactly what I was looking for. Thank you very much! Jul 5, 2015 at 20:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.