diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2018-07-15 10:43:58 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2018-07-15 10:43:58 -0400 |
| commit | 9b7cda466bb660799f3f85d6a87cd15fa5915969 (patch) | |
| tree | 20740de35f67eefd4b30f3171fceedd844fd9b98 /.scripts/crontog | |
| parent | 64cd591660b3d197d7629669f2d06ce41e9b6fe2 (diff) | |
| download | eibhear-9b7cda466bb660799f3f85d6a87cd15fa5915969.tar.gz eibhear-9b7cda466bb660799f3f85d6a87cd15fa5915969.tar.zst eibhear-9b7cda466bb660799f3f85d6a87cd15fa5915969.zip | |
cron toggle script added
Diffstat (limited to '.scripts/crontog')
| -rwxr-xr-x | .scripts/crontog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.scripts/crontog b/.scripts/crontog new file mode 100755 index 0000000..3b0b0a4 --- /dev/null +++ b/.scripts/crontog @@ -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. ) |
