toutiao/stop.py

8 lines
215 B
Python
Raw Normal View History

2019-01-04 08:41:15 +00:00
import glob
import os
if __name__ == "__main__":
for p in glob.glob("./*"):
if os.path.isdir(p):
bn = os.path.basename(p)
os.system("cd {0} && screen -X -S {0} quit ".format(bn))