Run a cgi shell script in background

房东的猫 提交于 2019-12-01 09:32:06
Aaron Digulla

Close stdout with exec >&- before you execute your long-running or background task. Maybe you'll also have to close stderr. That would be

exec >&-
exec 2>&-

(it seems you can't close both in one line)

This will break the pipe and allow your web server to send the data already outputted (such as via echo) to the browser.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!