title: redirecting output of server to client-socket
body: <p>I'm going through the <strong>socket programming</strong> and implemented it well.. Now i want to implement a system call <code>ls</code> in it..</p>
  
  <p>when the input is given as <code>ls</code> on the <strong>client machine</strong>, the output of the server should be printed on client machine (i.e the command should execute on the server side and the output should be redirected to the client side..)</p>
  
  <p>How do i collect the output of server machine?</p>
  
  <p>i just need hint.. Thanks</p>