News for hackers. Stuff that matters.

dschuck

Re:Cron best practices on Friday March 11, 2022 @09:41AM (#30640460)
Dang, true. Didn't catch that. I think sometime I had set cron to run a script every day at a certain time and bypassed every other day with a simple .txt file.

Top of my script was a simple if-clause, when alternate-day.txt is found, it will be removed and the script runs. If no .txt is found it will be created and the script exits. A bit lame, but it worked and was quick :)

Re:Cron best practices on Friday March 11, 2022 @08:12AM (#30639380)
0 23 star/2 star star insert_your_script_here.sh

i.e. runs every two days at 11pm. or am i mistaken?