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 <mar...@letterboxes.org> wrote:
> 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.
>
>
>
>
>
>

Reply via email to