Results 1 to 5 of 5

Thread: why cron job wouldnt work?

  1. #1
    Join Date
    Sep 2008
    Beans
    750
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    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.
    20.04 LTS

  2. #2
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,790
    Distro
    Ubuntu 16.04 Xenial Xerus

    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
    750
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    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
    20.04 LTS

  4. #4
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,790
    Distro
    Ubuntu 16.04 Xenial Xerus

    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
    750
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: why cron job wouldnt work?

    thanks
    20.04 LTS

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
  •