NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: nc -N and EOF
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
-uwe
Home |
Main Index |
Thread Index |
Old Index