tech-net archive

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

9.1 nc: two issues



I have a use case on a 9.1 machine, using nc -U to connect to an
AF_LOCAL socket, and I have two issues.  Testing with a guest login I
have on a 10.1 machine makes me think these are the same on 10.1 as
well.

The first issue is that, if the connect fails, it exits silently,
instead of reporting the error (ENOENT, EACCES, whatever).

The second one is that, if the connection drops, eg, if the peer closes
the socket, I want the nc process to exit immediately (after draining
all output, if any), instead of waiting for more input (or EOF) on
stdin.  Is there a way to get this?  I don't see one in the manpage,
but I certainly could have missed something.

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse%rodents-montreal.org@localhost
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index