On Wed, Feb 28, 2018 at 11:09:57PM +0000, Valery Ushakov wrote:
> Patrick Welche <pr...@cam.ac.uk> 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

Reply via email to