[Gllug] Treats for Windows refugees
Daniel P. Berrange
dan at berrange.com
Mon Sep 5 13:21:21 UTC 2005
On Mon, Sep 05, 2005 at 08:58:16PM +0100, Russell Howe wrote:
> On Mon, Sep 05, 2005 at 02:00:48PM +0100, Daniel P. Berrange wrote:
> > Ah, but can the input of the pipe be an arbitrary TCP connection
> >
> > $ cat </dev/tcp/time.nist.gov/13
> > 53618 05-09-05 19:46:47 50 0 0 945.1 UTC(NIST) *
>
> For anyone wondering why this doesn't work in bash on Debian, they
> compiled bash without networking support citing security concerns.
Well, it seems more like philosophical reasons
"10. Why is bash configured with --disable-net-redirections?
It can produce completely unexpected results. This kind of
feature should not be part of a shell but a special. tool. And
that tool has existed for years already, it's called netcat."
To be honest, they're probably right, since, in fact the nc command
is more compact than the bash builtin :-)
$cat <(nc time.nist.gov 13)
53618 05-09-05 20:11:49 50 0 0 757.0 UTC(NIST) *
Dan.
--
|=- GPG key: http://www.berrange.com/~dan/gpgkey.txt -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- berrange at redhat.com - Daniel Berrange - dan at berrange.com -=|
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20050905/e8018d7b/attachment.pgp>
-------------- next part --------------
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list