There's -k
option in OS X (BSD) version of netcat to keep listening after current connection is completed. However in Debian (GNU?) version this option is missing.
There's -q -1
option to listen forever after EOF appears on stdin but this doesn't do the trick and connections close anyway.
Is there any way to force Debian's netcat to keep listening indefinitely?