mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2025-10-07 07:22:36 +02:00
cron toggle script added
This commit is contained in:
parent
64cd591660
commit
9b7cda466b
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…
x
Reference in New Issue
Block a user