Find the answer to your Linux question:
Results 1 to 5 of 5
Hi folks, Ubuntu LAMP 6.06 amd64 I can't find cron.log $ locate cron.log No printout $ ps aux | grep cron Code: root 8335 0.0 0.0 11424 884 ? Ss ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778

    I can't locate cron.log


    Hi folks,


    Ubuntu LAMP 6.06 amd64


    I can't find cron.log


    $ locate cron.log
    No printout


    $ ps aux | grep cron
    Code:
    root      8335  0.0  0.0  11424   884 ?        Ss   19:02   0:00 /usr/sbin/cron
    satimis   8431  0.0  0.0   3944   900 pts/1    R+   19:10   0:00 grep cron

    Please advise. TIA


    B.R.
    satimis

  2. #2
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Have you built the filename database?
    Code:
    sudo updatedb
    Also, I suppose it's possible that you're not seeing any output because, as a regular user, you don't have access to the directories that contain cron.log. Try:
    Code:
    sudo locate cron.log
    or
    Code:
    sudo find / -name cron.log -print

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778
    Quote Originally Posted by Thrillhouse View Post
    Have you built the filename database?
    Code:
    sudo updatedb
    Also, I suppose it's possible that you're not seeing any output because, as a regular user, you don't have access to the directories that contain cron.log. Try:
    Code:
    sudo locate cron.log
    or
    Code:
    sudo find / -name cron.log -print
    Hi Thrillhouse,


    Thanks for your advice. I tried them previously without result. I was told that it has been replaced with /var/log/syslog


    B.R.
    satimis

  4. #4
    Just Joined!
    Join Date
    Apr 2005
    Posts
    88
    Satimis:
    Kindly check the under mentioned URL to fix the issue:
    How to enable cron log in Ubuntu Casual Code

    Regards,

  5. #5
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778
    Quote Originally Posted by KidCloudWala View Post
    Satimis:
    Kindly check the under mentioned URL to fix the issue:
    How to enable cron log in Ubuntu Casual Code
    Hi KidCloudWala,


    Thanks for your advice.


    Performed following steps;

    $ sudo nano /etc/syslog.conf
    ucomment the line;
    #cron.*


    $ sudo /etc/init.d/sysklogd restart
    Code:
     * Restarting system log daemon...                                            [ OK ]

    $ sudo /etc/init.d/cron restart
    Code:
     * Restarting periodic command scheduler crond                                [ OK ]

    $ sudo updatedb
    $ locate cron.log
    Code:
    /var/log/cron.log
    I got it back now.


    B.R.
    satimis

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •