11

So, I'll explain how my day went with just 2 sentences.

1: Difference between crontab -e and crontab -r.
2: The keys 'E' and 'R' are right next to each other!

If you've understood what just happened, your next question should be "Jason, which environment?"

"PRODUCTION!!!"

Comments
  • 4
    Done that.
  • 2
    I sometimes wonder why they put them close to each other, true it makes sense to use -r and -e but editing is a common thing, at least they could show a warning before starting to remove
  • 2
    Restore from backup
  • 2
    @gitpush - apparently if you use crontab -ri then it shows a prompt before removing the crontab.
  • 0
    @JRodDynamite what? Why only that, it is for sure many will by mistake press r instead of e
  • 1
    @Pavr - Thank God for that! Otherwise, I would've been without a job by now. 😅
  • 2
    @gitpush - Agree. By default, it should show a prompt to prevent such mishaps. If we want to suppress it (for scripts) add another flag.
  • 1
    @JRodDynamite I don't understand this world any more >_>
    Hope this never happens again :\
Add Comment