
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
- how to find out the ssh port of the cpanel host
- how to do install LibXml2 , LibXslt for centos 7
- 来个QNAP 301w IPQ807简单的CPU跑分
- QNAP 301w开箱,开启160MHz,以及刷openwrt系统记录
- How to query the hard disk usage time of various distribution Linux systems
- 威联通NAS开启定时任务的方法
- How to apply for a free ipv6 address
- How to turn off ubuntu's IPv6