The cause is that the backup script of scp on a server crontab fails to be run at regular intervals. it is okay to manually execute the script. Therefore, you need to find the cause from the crontab log, I suddenly found that no cron logs exist in my/var/log. here I will record how to view the crontab log ww in ubuntuserver...
The cause is that the backup script of scp on a server crontab fails to be run at regular intervals. it is okay to manually execute the script. Therefore, you need to find the cause from the crontab log, suddenly I found no cron logs under my/var/log. here I will record how ubuntu server can view the crontab log www.2cto.com crontab record log to modify rsyslog [html] sudo vim/etc/rsyslog. d/50-default.conf [html] cron. */var/log/cron. log # remove the comment in front of cron and restart rsyslog www.2cto.com [html] sudo service rsyslog restart to view crontab log [html] less/var/log/cron. log crontab problem locating view log/var/log/cron. log and/var/mail/$ user because the crontab running log is recorded in cron. log. when sendmail is enabled, the system will send an email www.2cto.com ssh error message to the current crontab running owner to delete the current host user. ssh/hosts file
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service