cron toggle script added
This commit is contained in:
parent
64cd591660
commit
9b7cda466b
1 changed files with 5 additions and 0 deletions
5
.scripts/crontog
Executable file
5
.scripts/crontog
Executable 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. )
|
Loading…
Reference in a new issue