Answers for "add job to crontab"

0

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
Posted by: Guest on July-22-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language