title: how to restart my tp-link router from java
body: <p>I need to restart my router from java(or any script that can do this every 5 minute!)</p>
  
  <p>I tried this but my problem is when I execute this command "telnet 192.168.1.1" I can not enter my password.</p>
  
  <pre><code> Process process = Runtime.getRuntime().exec("cmd.exe /c start telnet 192.168.1.1");
  </code></pre>
  
  <p>and after this code I see this on screen and I don't know how to enter my pass to it from my java code!!</p>
  
  <p><a href="https://i.stack.imgur.com/gDMxf.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gDMxf.jpg" alt="enter image description here"></a></p>