How can to add cron on QNAP NAS

By admin at 2020-07-31 21:46 • 11次点击
admin


How to start timed tasks on QNAP NAS

First, you need to open the ssh login of the NAS,,,

Use ssh to QNAP NAS terminal, you can execute the command to start adding QNAP NAS timing tasks

vi /etc/config/crontab

0 3 * * * /usr/local/demo/scripts/autoreload.sh

//Autoreload.sh script is automatically executed every day at 3 o'clock in the morning

Note that to add a custom script or program, you must remember to grant permission to execute the script program

chmod +x demo.sh

Lazy writing, suitable for people who do not know VI editor

echo "1 4 * * * /usr/local/demo/scripts/autoreload.sh" >> /etc/config/crontab

Restart QNAP NAS task process

crontab /etc/config/crontab && /etc/init.d/crond.sh restart



也许我的文章解决了你的问题,如果没有那很抱歉,
真诚希望您能把本站开启广告白名单,谢谢您~
联系邮箱vpslala#foxmail.com




start, tasks, NAS, How, QNAP


目前尚无回复
登录 后发表评论