I’m a big Bash fan, I know Perl is the more popular scripting language, and I’m slowly using it more, but hey, if I need something done, I can do it quicker in Bash (keeping in mind that I’m a systems guy, not a dev guy). While at work looking up Bash related syntax I came across a page describing how to run a webserver with 100 lines of Bash. It uses the old school GNU utility Netcat (nc) for communication between the pipes, and just a ton of basic logic and functions to pass it on to the user. It’s one of those things I look at and can’t believe it works, but it does. Of course security is unknown, as is the original author, but I consider this a reference on how to do networking things in Bash; who knows what I’ll use (parts) of it for. If anyone has details on who originally wrote this I’m all ears.[sourcecode language='xml']#!/bin/bash
Recent Comments
- LDN Games on HOWTO build your own open source Dropbox clone
- Rinkesh on Aquadots sweetened with the date-rape drug 1,4-butanediol
- Lars on HOWTO retrieve email with fetchmail and forward it on with procmail
- fak3r » HOWTO automate Debian installs with preseed | Linux Blog on HOWTO automate Debian installs with preseed
- Anti Snore on Racial profiling no better than random screening
Tags
apache apple art bands barack obama bash bsd code debian dubya eff election email features gamer google hacker health howto lighttpd linux mp3 music networking newstudy obama open source phishing politics president rock rock and roll security spam tech terror tv ubuntu unix varnish video games vote web webserver wii
BACKGROUND: The following is a proposal I submitted to the Varnish developers in order to make it simpler to integrate
By now you should know that if you surf the web, you should be using 











Home