Loading...
This site is best viewed in a modern browser with JavaScript enabled.
Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.
想用lua实现一个shell pipeline功能,将request_body转到另一个程序的stdin,然后把该程序的stdout输出到response,用lua如何实现?
chenym.alpha
已有的方案是,将request body写到文件,然后用os.execute执行该程序,并把输出文件用lua读出来,写到response里面。可是觉得这个方法过于繁琐,且容易出错,大家用什么好的建议。