tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: 9.1 nc: two issues
--------
Mouse <mouse%Rodents-Montreal.ORG@localhost> wrote:
> 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.
All versions of nc I know of, do exactly this by default.
I believe that there was a reason why the original author preferred that.
I think that it's because shutdown(2) != close(2), and maybe it's because
there could still be more output coming from the socket "soon"
So, I wind up usually using "-w 10"
I wish I could make that default, as I do not always remember.
--
] Never tell me the odds! | ipv6 mesh networks [
] Michael Richardson, Sandelman Software Works | IoT architect [
] mcr%sandelman.ca@localhost http://www.sandelman.ca/ | ruby on rails [
] My working hours and your working hours may be different. [
] Please do not feel obligated to reply outside your normal working hours [
Home |
Main Index |
Thread Index |
Old Index