anthony revisou este gist . Ir para a revisão
1 file changed, 0 insertions, 0 deletions
gistfile1.txt renomeado para add-cron.sh
Arquivo renomeado sem alterações
anthony revisou este gist . Ir para a revisão
1 file changed, 14 insertions
gistfile1.txt(arquivo criado)
@@ -0,0 +1,14 @@ | |||
1 | + | #!/bin/bash | |
2 | + | ||
3 | + | cat <<EOF | sudo tee /etc/cron.d/foobar && crontab -u "$(whoami)" /etc/cron.d/foobar | |
4 | + | # ------------- Minute (0 - 59) | |
5 | + | # | ----------- Hour (0 - 23) | |
6 | + | # | | --------- Day of month (1 - 31) | |
7 | + | # | | | ------- Month (1 - 12) | |
8 | + | # | | | | ----- Day of week (0 - 7) (Sunday=0 or 7) | |
9 | + | # | | | | | | |
10 | + | # * * * * * "command to be executed" | |
11 | + | ||
12 | + | * * * * * echo test | |
13 | + | ||
14 | + | EOF |