Add [-q timeout] option to netcat

2013-11-05 Thread Christopher Zimmermann
Hi, this patch adds this option to nc(1): -q timeout after end-of-file on stdin, wait timeout seconds and then quit. The default is no timeout. This should be compatible with the -q option of the netcat-openbsd package in debian (what the heck ?) I use this to send simple udp

Re: Add [-q timeout] option to netcat

2013-11-05 Thread Christopher Zimmermann
I just noticed my patch's bedaviour is actually different to the behaviour of the debian version. for my diff the man page should actually say -q timeout after end-of-file on stdin, timeout the connection after timeout seconds. A timeout of 0 will close the connection after