-----Original Message----- From: Scott L Ryan [mailto:[EMAIL PROTECTED]] Sent: 04 February 2002 22:33 To: '[EMAIL PROTECTED]' Subject: very complicated... would appreciate help with this.... I am currently writing a program that opens a port to listen for connections. (server) If you telnet to the particular port on this server you should be presented with: msg> I want to then write a client side program that connects to the opened port on server, sends a string, and awaits a response, then processes that response. Here is the complicated part...;) When the server receives a string, I want to then run an LDAP lookup and then present the response to the CLIENT on the opened connection, then disconnect and wait for the next connection This is what I have so far. I can open the port, listen, accept and run ldap queries from the string received on the server, but I cannot print the output of the ldap query script to the client machine, it prints to the output of the server, which is no good as the client has to wait for the particular response. I would really appreciate the help here as I am going daft! I can show you the code if you like.. Regards, Scott L Ryan