Jesse Molina wrote:
Netcat has strange issues about wanting stdin -- it won't run
backgrounded without being fed tail -f /dev/null. I wonder if it
isn't the problem here. I had discounted it since I redirected both
stdin and stdout to the logfile.
I have had problems with netcat before. As I recall (vague memory
now) it does not handle EOF conditions desirably. I switched my
application to using the connect program (typically used with ssh)
instead. It handles end conditions much better.
http://www.meadowy.org/~gotoh/projects/connect
If that meets your needs then you may find it works better.
Bob