Results 1 to 5 of 5

Thread: why cron job wouldnt work?

  1. #1
    Join Date
    Sep 2008
    Beans
    721
    Distro
    Ubuntu 12.04 Precise Pangolin

    why cron job wouldnt work?

    I set up a cron job. It worked for a day or two and then stopped working.

    I cant figure out why...

    crontab -e
    # m h dom mon dow command
    */15 * * * * /root/repeat/file.sh
    then, the file.sh
    -rwxr--r-- 1 root root 337 2012-06-14 04:41 file.sh
    please advise
    Last edited by 007casper; June 29th, 2012 at 02:18 AM.
    Using 12.04 Ubuntu

  2. #2
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,472
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: why cron job wouldnt work?

    Hi 007casper.

    Is that your regular user's crontab? If so, you don't have execution permission.

    Regards.

  3. #3
    Join Date
    Sep 2008
    Beans
    721
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: why cron job wouldnt work?

    >>you don't have execution permission.

    you mean it should be
    -rwxr-xr-- 1 root root 337 2012-06-14 04:41 file.sh
    Using 12.04 Ubuntu

  4. #4
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,472
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: why cron job wouldnt work?

    More like:
    Code:
    -rwxr-xr-x 1 root root 337 2012-06-14 04:41 file.sh
    Because you are not member of the 'root' group.

    Regards.

  5. #5
    Join Date
    Sep 2008
    Beans
    721
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: why cron job wouldnt work?

    thanks
    Using 12.04 Ubuntu

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
  •