Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #cron #job #command #line
ADD COMMENT
Topic
Name
9+5 =