cron toggle script added

This commit is contained in:
Luke Smith 2018-07-15 10:43:58 -04:00
parent 64cd591660
commit 9b7cda466b

5
.scripts/crontog Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
# Toggles all cronjobs off/on.
# Stores disabled crontabs in ~/.consaved until restored.
([[ -f ~/.cronsaved ]] && cat ~/.cronsaved | crontab - && rm ~/.cronsaved && echo cronjobs renabled.) || ( crontab -l > ~/.cronsaved && crontab -r && echo cronjobs saved and disabled. )