linux下python脚本后台运行

nohup python check_battery.py > /dev/null 2>&1 &
jobs
kill %1

参考链接
https://www.jianshu.com/p/4041c4e6e1b0
https://blog.csdn.net/ithomer/article/details/9288353

posted @ 2020-06-29 17:09  木,曰曲直  阅读(298)  评论(0编辑  收藏  举报