NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
GAPP
Apr 06, 2014Aspirant
Crontab won't run.
So I got flexget together with Transmission, to download series etc itself. It used to work, but lately I have to execute the job myself, which is really annoying. I want everything to run automatically.
I'm using this:
Like I said, it used to make crontab run, but lately that won't work. So instead I have to do a "flexget execute" for it to work.
Anyone got any idea, what could be the problem? I followed the guide I found here: http://flexget.com/wiki/InstallWizard/ReadyNAS
I'm using this:
echo "*/30 * * * * /usr/local/bin/flexget" > /root/crontabfile
crontab /root/crontabfile
Like I said, it used to make crontab run, but lately that won't work. So instead I have to do a "flexget execute" for it to work.
Anyone got any idea, what could be the problem? I followed the guide I found here: http://flexget.com/wiki/InstallWizard/ReadyNAS
8 Replies
Replies have been turned off for this discussion
- GAPPAspirantIf someone could shed some light on this for me, I would greatly appriciate it.
I basically just need the crontab to run a command "flexget execute" once every 6th hour. - ljungTutoredit with crontab -e (ctrl+o = save, ctrl+x = quit)
and I guess it should look something like "0 */6 * * * /usr/local/bin/flexget >/dev/null"
remember to always leave a empty line at the bottom. - GAPPAspirantFor some reason, that didn't do it. It still won't autorun. How can I tell the crontab to run "flexget execute" automatically?
- ljungTutorAre you sure it's executable, else do chmod +x /usr/local/bin/flexget
- GAPPAspirantNot sure if it's executable or not, I'm not experienced with this system. If I run the flexget execute command, it executes the command correctly though, which is why I thought it would work.
I just did this now:# chmod +x /usr/local/bin/flexget
Can I type something to test the crontab, to see if it works, or do I just wait 6 hours every time to check? :) - xeltrosApprenticeDid you reload cron after doing the modification ? ( /etc/init.d/cron restart ) Cron checks updates on config files only on start I think, at least I've been taught to restart with each modification.
You can also paste your file to the /etc/cron.hourly or /etc/cron.daily if you are not in need for a special timer.
PS : you cron will execute "flexget" not "flexget execute" is any different for this command ?
When testing I set on minute timer and make sure the script has some kind of output, if it works I change the timer and the output (if necessary). Maybe there is a better way to do it though. - GAPPAspirant
# /etc/init.d/cron restart
Restarting periodic command scheduler: cron.
Yes, the command is very different. It has to be exactly "flexget execute".
I don't really need a special timer. Once a hour is perfect too. How do I do that exactly? :) - ljungTutorThen you must have execute as your first argument: "0 */6 * * * /usr/local/bin/flexget execute >/dev/null" for every 6'th hour or for one every hour: "0 * * * * /usr/local/bin/flexget execute >/dev/null"
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!