php shell_exec with realtime updating

前端 未结 5 748
予麋鹿
予麋鹿 2020-12-17 00:03

I have this shell program that I want to execute by php. The problem is that it can potentially take a long time, and as of that I need it to have real-time updating to the

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-17 00:36

    there is a dirty easy option

    `yourcommand 1>&2`;
    

    redirecting the stdout to the stderr.

提交回复
热议问题