Linux_script_timer
天气脚本
通过运行来创建bin目录:mkdir bin
将weather_script放在bin目录中
气象服务和计时器
将weather_script.service和weather_script.timer都保存在您的主目录中,可以通过运行以下命令转到您的主目录:cd〜
确保systemd是init
之后,遵循以下命令:
须藤cp weather_script.service / etc / systemd / system
须藤cp weather_script.timer / etc / systemd / system
sudo systemctl守护进程重新加载
sudo systemctl enable --now weather.timer
评论0
最新资源