擅长:python、mysql、java
<p>{{t}你不想使用cd2}命令。。。它应该是一根线。在</p>
<p>因为您将参数作为一个序列传递给<code>Popen</code>,所以第一个arg(<code>autossh</code>)被用作命令,其余的参数实际上被传递给<em>shell</em>,而不是<code>autossh</code>。在</p>
<p>所以。。。您可以删除<code>shell=True</code>,也可以通过删除<code>shlex.split()</code>作为字符串传递参数。在</p>
<p><a href="https://docs.python.org/2/library/subprocess.html#subprocess.Popen" rel="nofollow">https://docs.python.org/2/library/subprocess.html#subprocess.Popen</a></p>