this post was submitted on 01 Oct 2025
625 points (99.4% liked)

Programmer Humor

26673 readers
1758 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] marcos@lemmy.world 7 points 20 hours ago (1 children)

Make the rule start a secondary cron system. Otherwise it won't run after you erase the crontab.

[โ€“] dondelelcaro@lemmy.world 6 points 19 hours ago* (last edited 19 hours ago)

Here you go:

with-lock-ex -q /path/to/lockfile sh -c '
while true; do
    crontab cronfile;
    sleep 60;
done;'