
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的解決方法
- 蜗牛星际nas简单测评
- How to check the CPU version?
- how to do install LibXml2 , LibXslt for centos 7
- How to turn off ubuntu's IPv6
- how to find out the ssh port of the cpanel host
- How to query the hard disk usage time of various distribution Linux systems
- VirtualBox You must specify a machine to start的解决方法
- redis Failed to start Advanced key-value store的錯誤解決方法