Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

add job to crontab

# To add cronjob
# For no output
echo "* * * * * command >> /dev/null 2>&1" | crontab -
# output to file
echo "* * * * * command >> cron.logs 2>&1" | crontab -
# view crons
crontab -l
# edit crons using editor
crontab -e
# view CRON system logs
grep CRON /var/log/syslog
 
PREVIOUS NEXT
Tagged: #add #job #crontab
ADD COMMENT
Topic
Name
3+4 =