Crontab
如何在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