Great! Thanks a lot Tim, I will try your solution tomorrow. Actually I've found ssf a very nice tool, but I'd prefer to use socat for this task. Cheers, Gianluca