I learned about anacron, cron's companion. Just like cron you can use it to schedule some task but the difference is it doesn't assume your system is running 24/7. This is from the manpage.
For each job, Anacron checks whether this job has been executed in the last n days, where n is the period specified for that job. If not, Anacron runs the job's shell command, after waiting for the number of minutes specified as the delay parameter.
I also learned that scripts executed by cron and anacron are a horrible environment for GUI apps. If you do want to show something on the screen your best chance is to run it with your user (not as root) and set the DISPLAY variable in the script. I do something like this.
I'm a fan of Open Source and have a growing interest in serverless and edge computing. I'm not a big fan of spiders, but they're doing good work eating bugs. I also stream on Twitch.
I learned about
anacron
, cron's companion. Just likecron
you can use it to schedule some task but the difference is it doesn't assume your system is running 24/7. This is from the manpage.This nice article can tell you more about it.
I also learned that scripts executed by
cron
andanacron
are a horrible environment for GUI apps. If you do want to show something on the screen your best chance is to run it with your user (not as root) and set theDISPLAY
variable in the script. I do something like this.That's awesome! 🔥