linux - stream output of a command continuously run in php -
i running simple command
{ ./a.out < in; } &> output.txtusing exec , want output what's coming in output.txt through ajax request continuously.
also want way turn off output buffering.i tried flush() , ob functions didn't succedded.in
/etc/php5/apache2/php.ini php.inivalue of
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'.when change off , restart apache2 server fails restart.
p.s. using lamp server.
Comments
Post a Comment