|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
Depends on your version of scp. Some proprietary versions don't return an error code.
Check for output on standard error. |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| 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 |
|
|