in reply to Exit/Crash on write to client socket

Yeah, AgentM has probably got it; I'd suggest looking at the cookbook (the code is available from O'Reilly) for an example that fits what you're trying to do.

It was never clear to me if syswrite was a better idea than print SOCK ... except that you shouldn't mix them. Experience showed my problems were always else where and I could skip the syswrite/read and use print/<SOCK> as if it were a normal handle. YMMV wildly though.

a

  • Comment on Re: Exit/Crash on write to client socket