我不明白为什么我下面的子进程命令(python2.7)不能工作。有什么想法吗?谢谢。
In [35]: import subprocess
In [36]: subprocess.call("for f in $(find _test/ -name *.c -print); do echo hello; done ".split(),shell=True)
f: -c: line 0: syntax error near unexpected token `newline'
f: -c: line 0: `for'
Out[36]: 2
我的这段代码在本地主机上工作得很好,但在服务器上不工作,我使用的是共享主机,我不知道我必须更改其他设置。
<?php
// Turn off output buffering
ini_set('output_buffering', 'off');
// Turn off PHP output compression
ini_set('zlib.output_compression', false);
//Flush (send) the output buffer and turn off output buffering
while (