【发布时间】:2012-03-25 10:43:40
【问题描述】:
我正在使用仅在 bash 中工作的科学软件(称为 vasp),并使用 Python 创建一个脚本,该脚本将为我进行多次运行。当我使用 subprocess.check_call 正常调用该函数时,它工作正常,但是当我添加 '| tee tee_output' 它不起作用。
subprocess.check_call('vasp') #this works
subprocess.check_call('vasp | tee tee_output') #this doesn't
我完全不喜欢 python 和编程。
【问题讨论】:
标签: python bash call subprocess