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無法打開Plex的解決方法
- Qnap NAS cannot access Plex solution
- 蜗牛星际nas简单测评
- How to check the CPU version?
- How to query the hard disk usage time of various distribution Linux systems
- how to find out the ssh port of the cpanel host
- 来个QNAP 301w IPQ807简单的CPU跑分
- 解决威联通NAS TS453Bmini智能识别两个硬盘的问题
- cifs 挂载nas共享目录记录
- VirtualBox You must specify a machine to start的解决方法