HNHacker News
TopNewBestAskShowJobs

dschuck

1 karma · joined February 22, 2018

submissionscomments
dschuck··on Cron best practices
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 :)

dschuck··on Cron best practices
0 23 star/2 star star insert_your_script_here.sh

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