Better HN
topnewbestaskshowjobs
Log inSign up

dschuck

1 karma · joined Feb 22, 2018 (8y ago) · 2 submissions

Submissions

comment 4y ago · link · parent

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 :)

comment 4y ago · link · parent

0 23 star/2 star star insert_your_script_here.sh

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