title: sending System.out over socket
body: <p>How do I send output from System.out to socket e.g. PrintWriter?</p>
  
  <p>I need to send whatever appears on the console output (both std and err) to PrintWriter, thus a socket.</p>
  
  <p>Thank you.</p>