Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-26-2012
Registered User
 
Join Date: Apr 2012
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Does SCP return an error code for network issues

Hello everyone,
In a script, I am using SCP to copy huge file to another host.

scp -qrp hugefile.txt /opt/perf05/tmp

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.

-Steve
Sponsored Links
    #2  
Old 06-26-2012
Mead Rotor
 
Join Date: Aug 2005
Location: Saskatchewan
Posts: 16,391
Thanks: 492
Thanked 2,536 Times in 2,419 Posts
Depends on your version of scp. Some proprietary versions don't return an error code.

Check for output on standard error.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SFTP return Error Code 126 koti_rama Shell Programming and Scripting 2 01-18-2011 11:44 PM
Getting error return code nck Shell Programming and Scripting 7 10-26-2009 04:44 PM
Command 'rm -f -r "0yfOYy-0008Nq-2j-32233-K"' failed with return code 1 and error mes linuxbee UNIX for Dummies Questions & Answers 3 05-14-2009 04:00 PM
to pick up the Return Code ( RC) from the mailx command and return it to SAS uisng 's manas6 UNIX for Dummies Questions & Answers 0 06-05-2008 06:44 AM
how to get error return code rayg50 Shell Programming and Scripting 2 01-13-2006 01:25 PM



All times are GMT -4. The time now is 04:07 PM.