Results 1 to 3 of 3

Thread: Root Cron job will not run

  1. #1
    Join Date
    Jun 2007
    Beans
    57
    Distro
    Ubuntu 10.04 Lucid Lynx

    Root Cron job will not run

    OS= 10.04

    Problem: Cron job's I have created to run every hour as ROOT since upgrading to 10.04 will not run.

    Indications:
    Code:
    sudo crontab -e
    produces
    Code:
    0 * * * * hddtemp /dev/sda >> /30GB/temp_logs/hd-temp.log && exit # JOB_ID_4
    0 * * * * hddtemp /dev/sdc >> /30GB/temp_logs/hdtemp-c.log && exit # JOB_ID_5
    auth.log shows:
    Jun 4 14:27:01 Ubuntu CRON[3886]: pam_unix(cron:session): session opened for user root by (uid=0)
    Jun 4 14:27:01 Ubuntu CRON[3886]: pam_unix(cron:session): session closed for user root

    I can manually run the jobs and they perform as expected.

    JOB_ID_1 is a shutdown that I created before upgrading to 10.04, and it runs as expected.

    /etc/cron.hourly is empty (not sure is this is normal or not)


    Any ideas?

  2. #2
    Join Date
    Jul 2005
    Beans
    294
    Distro
    Ubuntu

    Re: Root Cron job will not run

    I think you need to give full path to the command for a cronjob (e.g. /usr/bin/hddtemp or /sbin/hddtemp).

  3. #3
    Join Date
    Jun 2007
    Beans
    57
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Root Cron job will not run

    Gaussian, Thanks for not says "just like the pop up window tells you to"..

    Your advice fixed this problem.

    .
    Last edited by ub-newbie; June 11th, 2010 at 02:43 AM. Reason: New Info., again.

Tags for this Thread

Bookmarks

Posting Permissions

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