admin avatar

How can to add cron on QNAP NAS

🕝 by 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/

// 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

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

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

Restart QNAP NAS task process

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

💘 相关文章


Based on Golang + fastHTTP + sdb | go1.18.3 Processed in 1ms