title: EC2 ssh broken pipe terminates running process
body: <p>I'am using a EC2 instance to run a large job that I estimate to take approx 24 hours to complete. I get the same issue described here <a href="https://stackoverflow.com/questions/13943613/what-happens-to-a-process-in-an-ec2-instance-when-i-get-a-broken-pipe-error-on">ssh broken pipe ec2</a></p>
  
  <p>I followed the suggestion/solutions in the above post and in my ssh session shell I launched my python program by the following command:</p>
  
  <pre><code>nohup python myapplication.py &gt; myprogram.out 2&gt;myprogram.err
  </code></pre>
  
  <p>Once I did this the connection remained intact longer than if I didn't use the <code>nohup</code> but it eventually fails with <code>broken pipe error</code> and I'm back to square one. The process '<code>python myapplication.py</code>' is terminated as a result. </p>
  
  <p>Any ideas on what is happening and what I can do to prevent this from occuring? </p>