“Ustaw pracę CRON” Kod odpowiedzi

Jak rozpocząć pracę CRON

#Red Hat / CentOs:

service crond start

#or

/etc/init.d/crond start

#Ubuntu:

sudo service cron start

#or

sudo /etc/init.d/cron start
adens

Utwórz zadanie CRON z wiersza poleceń

#write out current crontab
crontab -l > mycron
#echo new cron into cron file
echo "00 09 * * 1-5 echo hello" >> mycron
#install new cron file
crontab mycron
rm mycron
Disgusted Deer

Ustaw pracę CRON

# to list all crontab content (including scheduled jobs)
crontab -l

# to edit crontab file
crontab -e

# once you have finished adding tasks, save the file and exit
# the cron daemon will read and execute the instructions provided
notorious

Odpowiedzi podobne do “Ustaw pracę CRON”

Pytania podobne do “Ustaw pracę CRON”

Więcej pokrewnych odpowiedzi na “Ustaw pracę CRON” w Shell/Bash

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu