我用pythonversion2.6运行debian6squise。我有两个类似的子流程代码:
rsync_out = subprocess.Popen(['sshpass', '-p', password, 'rsync', '--recursive', source],
stdout=subprocess.PIPE)
command = subprocess.check_call(('grep', '\.'), stdin=rsync_out.stdout)
它的工作方式与我想要的完全一样,但是python2.6没有check_调用。如何使用subprocess.Popen
调用第二个命令?在
试过了,但没用:
^{pr2}$我得到这个错误:
'NoneType' object has no attribute 'split'
我想让你回第二个命令?试试这个:
相关问题 更多 >
编程相关推荐