Professional Documents
Culture Documents
At
Crontab
anacron
At command
# at 11:45 pm
at>mkdir /root/Desktop/New1
at><EOT>
#atq
Crontab
0 */4 * * * /scripts/script.sh
* * * * * /scripts/script.sh
* * * * * /scripts/script.sh; /scripts/scrit2.sh
@yearly: @yearly /scripts/script.sh
@monthly: @monthly /scripts/script.sh
@weekly: @weekly /bin/script.sh
@daily: @daily /scripts/script.sh
@hourly: @hourly /scripts/script.sh
@reboot : @reboot /scripts/script.sh
Redirect Cron Results to plain text file
# crontab -r
# crontab -l
no crontab for root
Restore crons from text file
# crontab cron-backup.txt
# crontab -l MAIL=rahul
0 2 * * * /script/backup.sh
To check the log files
Tail –f /var/log/syslog
Thank you