title: How to prevent <session disconnected> errors while running Intersystems Caché terminal scripts?
body: <p>I'm developing a system that needs to execute Intersystems Cache Terminal Scripts.</p>
  
  <p>When I run a routine inside the regular Caché terminal or a telnet terminal, Cache executes the routine until the end with no problems. But when I try to run the same routine, but this time calling the routine within a Caché terminal Script, Caché disconnects the session after a while. There is no mention at all in the documentation of a "timeout" setting or anything realted to the "" messages i'm getting.</p>
  
  <p>The script is run just like this:</p>
  
  <pre><code>Cterm.exe /console=cn_iptcp:192.168.2.13[23] c:\test.s
  </code></pre>
  
  <p>1) Does anybody know what may be causing Interystems Caché to disconnected the session in the middle of the run (the session isn't idle either. It regularly outputs status messages to the console)?</p>
  
  <p>2) Any ideas of how to solve it?</p>
  
  <p>Thanks,</p>
  
  <p>Luís Fernando</p>