crontab设置开机启动的的shell脚本

1、打开crontab任务

    crontab -e

2、设置脚本的启动时间

@reboot ( sleep 60 ; sh \path\demo.sh )

设置脚本在启动后的60s启动

\path\demo.sh 就是脚本的存放地址

猜你喜欢

转载自blog.csdn.net/qq_40757296/article/details/82726218