Find the answer to your Linux question:
Results 1 to 2 of 2
I've got a couple of scripts that work flawlessly when I run them manually. However, I can't seem to get them to work as cron jobs. I've added the following ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    4

    Can't get cron jobs running


    I've got a couple of scripts that work flawlessly when I run them manually. However, I can't seem to get them to work as cron jobs. I've added the following cron jobs to the /etc/cron.d/ directory on my Netgear ReadyNAS NV+:

    /etc/cron.d/import_torrents
    Code:
    #55  * * *  * root  /usr/local/bin/import_torrents &> /dev/null
    /etc/cron.d/rss_script
    Code:
    #50  * * *  * root  /usr/local/bin/rss_script &> /dev/null
    I've tried starting and restarting cron:
    Code:
    /etc/init.d/cron start
    Code:
    /etc/init.d/cron restart
    I even tried to install rcconf via apt-get, but couldn't get it to run.

    Is there something wrong with the way I've set up these cron jobs?

  2. #2
    Just Joined! TuxKnight's Avatar
    Join Date
    Sep 2008
    Location
    New Zealand
    Posts
    28
    Hi

    To get the cron jobs to run remove the "#" from the beginning.

    Code:
    55  * * *  * root  /usr/local/bin/import_torrents &> /dev/null
    50  * * *  * root  /usr/local/bin/rss_script &> /dev/null
    Hope this helps

    Tuxknight

Posting Permissions

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