Preserve Existing Lines While Updating Your Crontab When Using The Whenever Gem

Posted by Weston Ganger on November 05, 2015

It sure sucks if you have multiple apps using the crontab and you go to add your new task to the crontab using whenever -w and it overwrites all of your other rules.

They have a helpful option that aids with this. It handles multiple apps or tasks

whenever --update-crontab some_identifier

Now whenever you want to overwrite that rule use the same identifier. If you want a new rule then use a new identifier.

Related External Links:

Posted in Rails and Tagged with whenever scheduling crontab 

Want me to help develop your next project or application?

Contact Us

Specializing in Ruby-on-Rails, Javascript, Multi-Platform Electron Desktop Apps and Hybrid Cordova Mobile Apps.

Recommended Posts