5 ms·
Or cd to the html directory and run this: python -m http.server 8080 which does not require anything else like socat.
by cf100clunk 3y ago
Or cd to the html directory and run this:
python -m http.server 8080
which does not require anything else like socat.
- prokopton 3y agoI think this is more of a “ain’t this interesting?” sort of thing.
- cf100clunk 3y agoNot a nawk on awk (pun intended) or socat, just a reply to the parent's comment.
- Brian_K_White 3y agoThis is functional and uninteresting.
- cf100clunk 3y agoFor those who were drawn to ''awk'' in the title it is probably uninteresting. For those who were drawn to ''simple web server'', it is likely of some interest.
- Brian_K_White 3y agoThere are 1000 simple web servers. That part was never interesting to anyone interesting themselves. If it had been "process some records with awk" that too would have been uninteresting even though it said awk.
- sodapopcan 3y ago"requires python"
- CSSer 3y agoWhich in a way is somehow worse :P
- hackideiomat 3y agoin many ways
- cf100clunk 3y agoYes, for some that would be a show-stopper. It is a nice one-line web service string, but should probably be run thusly: nohup python -m http.server 8080 2>/dev/null &
- pmarreck 3y agoNothing is interesting about overrated Python though
- cf100clunk 3y agoUbiquitous, omnipresent, consistently rated in the top 2 or 3 most used computer languages. You don't like it, fine.
- Brian_K_White 3y agoApparently not fine. Are you about to cry?