title: Restricting some commands from user
body: <p>I'm currently working on a project that contains two seperate applications. You install the first one on a server and use the second one to run some commands like <code>ipconfig</code> or <code>ping</code> at the server from a pc. Then the server returns results to the pc when the command has terminated. </p>
  
  <p>Everything seemed nice until I realised this: what if the user runs <code>telnet</code> or <code>notepad</code> or something like that, it would never closes itself. There will be no results to show, no termination of the command. </p>
  
  <p>What would you do in a situation like this ?</p>