摘要:
#!/bin/python import os import subprocess import time def update_cpld(): file = open('test.txt','a+') node_status = os.popen("mtinq lsservicenodes -de 阅读全文
摘要:
新进小白 写了一个python脚本执行linux命令"df -h" 第一次: #!/bin/python import subprocess def main(): p = subprocess.Popen('df-h',shell=True,stdout.PIPE,stderr=subproces 阅读全文