Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Re: Crontab won't run.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2014-04-05
05:35 PM
2014-04-05
05:35 PM
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
Message 1 of 9
Labels:
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2014-04-08
04:49 AM
2014-04-08
04:49 AM
Re: Crontab won't run.
If 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.
I basically just need the crontab to run a command "flexget execute" once every 6th hour.
Message 2 of 9
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2014-04-08
05:03 AM
2014-04-08
05:03 AM
Re: Crontab won't run.
edit 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.
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.
Message 3 of 9
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2014-04-11
04:59 AM
2014-04-11
04:59 AM
Re: Crontab won't run.
For some reason, that didn't do it. It still won't autorun. How can I tell the crontab to run "flexget execute" automatically?
Message 4 of 9
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2014-04-11
08:14 AM
2014-04-11
08:14 AM
Re: Crontab won't run.
Are you sure it's executable, else do chmod +x /usr/local/bin/flexget
Message 5 of 9
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2014-04-13
08:59 AM
2014-04-13
08:59 AM
Re: Crontab won't run.
Not 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:
Can I type something to test the crontab, to see if it works, or do I just wait 6 hours every time to check? 🙂
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? 🙂
Message 6 of 9
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2014-04-13
12:21 PM
2014-04-13
12:21 PM
Re: Crontab won't run.
Did 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.
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.
Message 7 of 9
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2014-04-14
02:05 AM
2014-04-14
02:05 AM
Re: Crontab won't run.
# /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? 🙂
Message 8 of 9
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2014-04-14
03:18 AM
2014-04-14
03:18 AM
Re: Crontab won't run.
Then 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"
Message 9 of 9