Thnaks for Information!!
But the question is slight different.
I can do either telnet, ssh or http daemon to connet to server and issue commands. I can even wait for the response.
But all these assume that on the server side there is a standard command/shell prompt.
My question is once I issue the command (eg ./run.out), this run.out waits for some <STDIN> and the prompt is ">>" instead of "# or $ or ~". The .out is now waiting for some data at the stdin, so I need to send some Data after it waits for STDIN.
How to I Send data to the .out running at server waiting for the <STDIN>?