TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

24 pointsby beefsackalmost 5 years ago

6 comments

freedombenalmost 5 years ago
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).
flqnalmost 5 years ago
Huh, seems like a more convenient CGI
gadelatalmost 5 years ago
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 未加载
avmichalmost 5 years ago
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 未加载
bsg75almost 5 years ago
How would this compare to websocketd ?
评论 #24289237 未加载
MuffinFlavoredalmost 5 years ago
pipe incoming request bodies into commands as `stdin`<p>very cool. could be pretty useful :)