NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

nc -N and EOF

I tried

  echo "hello from server" | nc -l 1234

  nc -l 1234 << EOF
  hello from server

  echo "hello from server" > tmpfile
  nc -l 1234 < tmpfile

and in all cases

  nc  -N 1234

prints "hello from server" but doesn't exit. Maybe I'm misunderstanding

     -N      shutdown(2) the network socket after EOF on the input.  Some
             servers require this to finish their work.




Home | Main Index | Thread Index | Old Index