Re: [gentoo-user] Bash & Server Sockets

2009-01-19 Thread Eric Martin
While I don't think there's a way. I took a shell scripting class a year or two ago and we used netpipes for tcp connecrions. Since it was a very bash class we'd have used bash if possible On 1/16/09, Albert Hopkins wrote: > On Thu, 2009-01-15 at 21:53 -0800, Hilco Wijbenga wrote: >> Hi all, >> >

Re: [gentoo-user] Bash & Server Sockets

2009-01-16 Thread Albert Hopkins
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 w

[gentoo-user] Bash & Server Sockets

2009-01-15 Thread Hilco Wijbenga
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. G