6 lines
382 B
Text
6 lines
382 B
Text
|
#!/bin/sh
|
||
|
# Toggles all cronjobs off/on.
|
||
|
# Stores disabled crontabs in ~/.consaved until restored.
|
||
|
|
||
|
([ -f ~/.cronsaved ] && crontab - < ~/.cronsaved && rm ~/.cronsaved && notify-send "Cronjobs have been re-enabled." && echo cronjobs re-enabled.) || ( crontab -l > ~/.cronsaved && crontab -r && echo cronjobs saved and disabled.;notify-send "Cronjobs have been saved and disabled.")
|