title: Does unix SCP return an error code for network issues
body: <p>In a script, I am using SCP to copy huge file to another host.</p>
  
  <p>scp -qrp hugefile.txt /opt/perf05/tmp</p>
  
  <p>However, we have noticed that this file is not being copied. I am suspecting this was because we are losing connection while copying this huge file across network. Does scp command return any error code in case of such network disconnect or is there any other way of debugging this to find out what exactly causes this failed copy. Thanks in advance.</p>
  
  <p>-Steve</p>