摘要: tty查看当前tty 核心命令: echo "XXX" > /dev/pts/XXX 使用python代码 #!/usr/bin/env python3 import os import sys def message(content): for tty in os.popen("ps ua | g 阅读全文
posted @ 2020-08-20 10:27 twfb 阅读(257) 评论(0) 推荐(0)
摘要: import time import os from multiprocessing import Process def demo(): time.sleep(20) def main(): Process(target=demo).start() os.system("kill -KILL {} 阅读全文
posted @ 2020-08-20 10:23 twfb 阅读(293) 评论(0) 推荐(0)