From: Eric Martin <freak4uxxx@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Bash & Server Sockets
Date: Mon, 19 Jan 2009 15:14:15 -0500 [thread overview]
Message-ID: <ae47c6e50901191214g3671b95fl879ee3e56e833843@mail.gmail.com> (raw)
In-Reply-To: <1232119067.2939.2.camel@centar.nbk>
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 <marduk@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.
>
>
>
>
>
>
prev parent reply other threads:[~2009-01-19 20:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-16 5:53 [gentoo-user] Bash & Server Sockets Hilco Wijbenga
2009-01-16 15:17 ` Albert Hopkins
2009-01-19 20:14 ` Eric Martin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ae47c6e50901191214g3671b95fl879ee3e56e833843@mail.gmail.com \
--to=freak4uxxx@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox