Code: Select all
0 */6 * * */opt/filebot-node/task 1
Not working!
What have I done wrong?
Should it be just task?
or should it be run ?
Code: Select all
0 */6 * * */opt/filebot-node/task 1
Code: Select all
0 4 * * * /share/homes/admin/scripts/nightly.sh > /share/homes/admin/scripts/nightly.log 2>&1
I am confident the actual crontab bit is correct as have used a similar site/apprednoah wrote: ↑20 Jul 2019, 13:57 No space between * and /command would be the first obvious issue.
This might help:
https://crontab-generator.org/
EDIT:
Here's a crontab line that definitely works since I'm using it on my QNAP test device for nightly test runs:Code: Select all
0 4 * * * /share/homes/admin/scripts/nightly.sh > /share/homes/admin/scripts/nightly.log 2>&1
Code: Select all
# NO
0 */6 * * */opt/filebot-node/task 1
# MAYBE
0 */6 * * * /opt/filebot-node/task 1
Code: Select all
/opt/filebot-node/task 1
Code: Select all
0 */6 * * * /opt/filebot-node/task 1
Code: Select all
0 */6 * * * /opt/filebot-node/task 1 > /path/to/some/file.log 2>&1
Code: Select all
0 */6 * * * /opt/filebot-node/task 1 > /share/CACHEDEV2_DATA/AAAdata/BACKUPS/crontab.log 1>&1
Code: Select all
0 */1 * * * /opt/filebot-node/task 2 > /share/CACHEDEV2_DATA/AAAdata/BACKUPS/crontab.log 2>&1
Code: Select all
* * * * * date > /path/to/log 2>&1
Code: Select all
cat /path/to/log
Code: Select all
* * * * * /path/to/script.sh > /path/to/log 2>&1
Code: Select all
cat /path/to/log
Code: Select all
* * * * * /path/to/script.sh > /path/to/log 2>&1
Code: Select all
echo "* 4 * * * /opt/filebot-node/task 0" >> /etc/config/crontab
Code: Select all
crontab /etc/config/crontab && /etc/init.d/crond.sh restart
Thanks Rednoah
rednoah wrote: ↑22 Jul 2019, 08:15 So I've tried this myself, and it works out of the box.
Google Search "qnap cron" ➔ https://wiki.qnap.com/wiki/Add_items_to_crontab
Add crontab entry:Code: Select all
echo "* 4 * * * /opt/filebot-node/task 0" >> /etc/config/crontab
Add line to cron using echo and IO redirection to crontab file (don't do this more than once, as you'll be adding task after task, edit instead using vi or nano editors).
0 refers to the first scheduled task in FileBot Node. When you schedule a task in FileBot Node, it should show you the command you can run to run the new task.
Reload crontab:Code: Select all
crontab /etc/config/crontab && /etc/init.d/crond.sh restart
Code: Select all
cat /opt/filebot-node/task
Code: Select all
/opt/filebot-node/data/log/0.log