send fail on file not found after 5 checks
This commit is contained in:
17
recycle/smart-cron-builder.bash
Executable file
17
recycle/smart-cron-builder.bash
Executable file
@@ -0,0 +1,17 @@
|
||||
reset
|
||||
|
||||
clear
|
||||
|
||||
python3 smart-cron-builder.py
|
||||
|
||||
####
|
||||
|
||||
cp crontabX /etc/cron.d/cronfile
|
||||
|
||||
# Give execution rights on the cron job
|
||||
chmod 0644 /etc/cron.d/cronfile
|
||||
|
||||
# Apply the cron job
|
||||
crontab -u root /etc/cron.d/cronfile
|
||||
|
||||
crontab -l
|
||||
Reference in New Issue
Block a user