06 2022 档案
python执行shell命令
摘要:import subprocessdef cmd(command): subp = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding="utf-8") retu 阅读全文
posted @ 2022-06-28 01:11 (_OwO_) 阅读(215) 评论(0) 推荐(0)
mysql profile模板
摘要:.prod_profile #!/bin/shecho "Now run on Server DB:"echo " "#netstat -an|grep mysql|grep LISTENING|awk -F / '{print $3}'| awk -F _ '{print $2$3}'|awk - 阅读全文
posted @ 2022-06-17 14:28 (_OwO_) 阅读(50) 评论(0) 推荐(0)