1
nkssai 2015-07-13 10:31:42 +08:00
把shell=True代开,然后把stdin、stdout、stderror都设置一下,再试一试呢?
|
2
realityone 2015-07-13 11:32:09 +08:00
subprocess.call(['/usr/bin/php', '/Users/realityone/Desktop/test.php'])
subprocess.call(['/usr/bin/php', '/root/addpass.php', ftp, ftppass]) |