Answers for "adding cron job in linux"

3

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
0

setup cron job

# 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
Posted by: Guest on May-26-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language