TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Script-httpd – Turn command line scripts into web services

24 点作者 beefsack超过 4 年前

6 条评论

freedomben超过 4 年前
This kind of reminds me of the venerable tool &quot;netcat.&quot; Through such simplicity, elegance and power emerge.<p>If you&#x27;ve used netcat before you know how useful it can be, but also be very careful ever exposing it to the internet (or even your LAN if there could be malicious users connected).
flqn超过 4 年前
Huh, seems like a more convenient CGI
gadelat超过 4 年前
Hmm looks similar to stdinho <a href="https:&#x2F;&#x2F;github.com&#x2F;ostrolucky&#x2F;stdinho" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ostrolucky&#x2F;stdinho</a>. Difference is that script-httpd accepts incoming http data and pipes it to process, returning result. Stdinho does not accept incoming http data, it just takes whatever stdout process returns right as process starts. This allows it to not wait for http connection and start buffering before that.
评论 #24290865 未加载
avmich超过 4 年前
Great.<p>Can we use pipes of commands for processing?<p>Is it possible to avoid creating processes along the way - to have a sort of precompiled service in memory, waiting for requests?
评论 #24289854 未加载
bsg75超过 4 年前
How would this compare to websocketd ?
评论 #24289237 未加载
MuffinFlavored超过 4 年前
pipe incoming request bodies into commands as `stdin`<p>very cool. could be pretty useful :)