ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have a problem in crontab. The crontab daemon is running fine . All the configurations are right. But the command was not executed . There is no log output in /var/log/cron
also . /var/log/cron file does not exist .
Then where is the log file . I am running as root user.
(Cron) Logging is done by the syslog daemon and configured in /etc/syslog.conf.
As root:
Make a backup before editing /etc/syslog.conf (cp /etc/syslog.conf /etc/syslog.conf.org). In case something goes wrong.
Add the following line: cron.* -/var/log/cron and restart the syslog daemon (from the /etc/rc.d/init.d directory, probably ./sysklogd restart, but this depends on your distro). You probably need to create the cron logfile (touch /var/log/cron) too before restarting the syslog daemon.
(Cron) Logging is done by the syslog daemon and configured in /etc/syslog.conf.
As root:
Make a backup before editing /etc/syslog.conf (cp /etc/syslog.conf /etc/syslog.conf.org). In case something goes wrong.
Add the following line: cron.* -/var/log/cron and restart the syslog daemon (from the /etc/rc.d/init.d directory, probably ./sysklogd restart, but this depends on your distro). You probably need to create the cron logfile (touch /var/log/cron) too before restarting the syslog daemon.
Hope this helps.
Bonjour,
Petite question
Sous Ubuntu, faut-il modifier le fichier syslog.conf ou rsyslog.conf du coup ?
Please, don't resurrect an old thread, better to start a new one. Also please post in English language, in agreement with the LQ rules you accepted upon registration.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.