Answers for "crontab start the cron jobs"

1

cron crontab

# Adding tasks easily
echo "@reboot echo hi" | crontab

# Open in editor
crontab -e

# List tasks
crontab -l [-u user]
Posted by: Guest on November-18-2021
2

create cron job from command line

#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
Posted by: Guest on January-28-2021

Browse Popular Code Answers by Language