#!/bin/bash
echo "输入开机自启任务"
while true
do
text="@reboot "
echo "需要开启启动的任务,[q]退出:"
read param
echo $param
if [[ "q" == $param ]];then
exit 0
fi
(crontab -l ; echo "$text$param") | crontab -
done
shell脚本添加自启动任务
最新推荐文章于 2024-11-08 14:34:47 发布