How can to add cron on QNAP NAS
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
Note that to add a custom script or program, you must remember to grant permission to execute the script program
1
2
3
4
5
6
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
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
💘 相关文章
- Qnap NAS cannot access Plex solution
- Qnap NAS無法打開Plex的解決方法
- How to update the open source http3 server - openlitespeed
- How to check the CPU version?
- how to find out the ssh port of the cpanel host
- How to apply for a free ipv6 address
- 解决威联通NAS TS453Bmini智能识别两个硬盘的问题
- 蜗牛星际nas简单测评
- VirtualBox You must specify a machine to start的解决方法
- 从自身折腾的经验来说说怎样选择nas的建议