title: Grab Program's Console Output
body: <p>I am creating a network administration program for a company I'm currently doing some contract work with (irrelevant I suppose)</p>
  
  <p>As part of the program, I would like to have a console/telnet(type) clone. I have a working directory system, where I can essentially read all files in directories, and change directories. I also have an easy FTP protocol set up. However I would like to arbitrarily speak to different programs with the standard input/output procedures programmatically. I'm not opposed to DLL injection techniques, and other methods, as this is a benign program. If possible it would be awesome if I could just directly use the console easily. (system() would possibly work, however this doesn't allow continued communication or reading back of output)</p>
  
  <p>I'm thinking so far of grabbing the PATH environment vars and utilizing that for std commands (ipconfig, netstat, etc) My networking library makes communication easy, but I'm just not sure how to interface with the program's console...</p>
  
  <p><strong>TL;DR:</strong></p>
  
  <p>Are there any predefined ways of standard console communication between programs?</p>