摘要: status, msg = commands.getstatusoutput("ps -ef | grep start.sh | grep -Fv grep | awk '{print $10}'") 查找含有start.sh的进程,并过滤掉grep命令的行,然后输出第10列数据 status:执行 阅读全文
posted @ 2019-01-19 16:23 lvmenghui001 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 正文 nohup nohup 命令运行由 Command参数和任何相关的 Arg参数指定的命令,忽略所有挂断(SIGHUP)信号。在注销后使用 nohup 命令运行后台中的程序。要运行后台中的 nohup 命令,添加 & ( 表示“and”的符号)到命令的尾部。 nohup 是 no hang up 阅读全文
posted @ 2019-01-19 14:27 lvmenghui001 阅读(1508) 评论(0) 推荐(0) 编辑