On Thu, 2009-01-15 at 21:53 -0800, Hilco Wijbenga wrote: > Hi all, > > In Bash /dev/tcp/host/port can be used to write to a TCP socket. This > works nicely so I was very curious whether it would work the other way > too: is it possible to have a Bash script listen on a particular port > as if it were a server? I couldn't find anything in the Bash manual > about it. Google does find a few examples but they all use nc. But > that's cheating! ;-) Is it possible with just Bash, no extra tools? > (If yes, please enlighten me as to how, obviously I could not get it > to work.)
... and some would even say using bash to begin with is cheating.