NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: nc -N and EOF
On Wed, Feb 28, 2018 at 11:09:57PM +0000, Valery Ushakov wrote:
> Patrick Welche <prlw1%cam.ac.uk@localhost> wrote:
>
> > I tried
> >
> > echo "hello from server" | nc -l 1234
> >
> > nc -l 1234 << EOF
> > hello from server
> > EOF
> >
> > echo "hello from server" > tmpfile
> > nc -l 1234 < tmpfile
> >
> > and in all cases
> >
> > nc -N 127.0.0.1 1234
> >
> > prints "hello from server" but doesn't exit.
>
> Use
>
> nc -d localhost 1234
Thank you!
echo "hello from server" | nc -l 1234
nc -N -d localhost 1234
Patrick
Home |
Main Index |
Thread Index |
Old Index