Crontab
Revision as of 05:31, 29 August 2018 by 64.64.108.60 (talk) (创建页面,内容为“如何在Linux系统使用crontab代替rc.local启动ctdemo。 1. Create a file /home/ct1/ct_cron_boot.sh 2. Change its attr to 755 文件:1.png 3. Copy the…”)
如何在Linux系统使用crontab代替rc.local启动ctdemo。
1. Create a file /home/ct1/ct_cron_boot.sh
2. Change its attr to 755
3. Copy the script in /etc/rc.local into /home/ct1/ct_cron_boot.sh
4. Comment out code in /etc/rc.local
5. Type “sudo crontab –e” to open cron editor
6. Add “@reboot /home/ct1/ct_cron_boot.sh”
A message will appear after edit and save.
7. Type “sudo reboot” to reboot
After reboot, the ct_demo is boot up