希望在系统重启后执行某个命令,一个比较简单的方法就是在crontab里面使用@reboot,使用方法:
crontab -e
----------
@reboot /path/to/command
----------
@reboot /path/to/command
参考:
http://www.cyberciti.biz/faq/linux-execute-cron-job-after-system-reboot/
http://www.debianhelp.co.uk/crontab.htm
--end