
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的解決方法
- VirtualBox You must specify a machine to start的解决方法
- How to query the hard disk usage time of various distribution Linux systems
- cifs 挂载nas共享目录记录
- How to turn off ubuntu's IPv6
- how to do install LibXml2 , LibXslt for centos 7
- 威联通NAS开启定时任务的方法
- How to update the open source http3 server - openlitespeed
- How to check the CPU version?