一个命令的流输出在php中连续运行

时间:2014-05-31 09:22:06

标签: php linux apache shell output-buffering

我正在使用exec运行这个简单的命令

{ ./a.out < in; } &> output.txt
我希望输出通过ajax请求连续<来自output.txt的内容/ b>。
我也想要一种方法来关闭我的输出缓冲。我尝试了flush()和ob函数但没有成功。在我的
/etc/php5/apache2/php.ini  php.ini
值为
output_buffering = 4096
error in log file is:
[Sat May 31 15:48:26.853420 2014] [mpm_prefork:notice] [pid 1277] AH00169: caught SIGTERM, shutting down
[Sat May 31 17:23:30.461926 2014] [mpm_prefork:notice] [pid 1270] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4 configured -- resuming normal     operations
[Sat May 31 17:23:30.484232 2014] [core:notice] [pid 1270] AH00094: Command line: '/usr/sbin/apache2'
 
时。当我改变时它关闭并重新启动我的apache2服务器它无法重启。
PS我正在使用灯泡服务器。

0 个答案:

没有答案