X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-3.1 required=5.0	tests=BAYES_00,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4ED91311.9030008@etr-usa.com>
Date: Fri, 02 Dec 2011 11:04:01 -0700
From: Warren Young <warren@etr-usa.com>
User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: Cygwin-L <cygwin@cygwin.com>
Subject: Re: File size error using sftp
References: <9E9DD545D034B84B935BB50A739B078B05516E8D15@sha-exch12.shared.ifeltd.com> <9E9DD545D034B84B935BB50A739B078B0551EFA997@sha-exch12.shared.ifeltd.com>
In-Reply-To: <9E9DD545D034B84B935BB50A739B078B0551EFA997@sha-exch12.shared.ifeltd.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 12/2/2011 7:50 AM, Andrew Erskine wrote:
> Im using an enterprise tool to sftp files from a remote server but it
> is failing with the error ..

[snip]

 > If i try and grab the file manually it works fine ..

So....you're asking us to debug Unspecified Enterprise Tool Which Is Not 
Cygwin 2012 Edition (TM)?

I assume the 2012 Edition of Unspecified Enterprise Tool Which Is Not 
Cygwin uses Cygwin's sftp, else it wouldn't be on topic here.

If so, why doesn't it use scp?  scp is a better tool for automated 
copying.  Both scp and sftp ride on top of SSH, doing roughly the same 
thing, but with a different UI.  scp mimics cp(1), while sftp mimics 
ftp(1).  That makes sftp better for interactive use when the user isn't 
sure exactly what they want to copy before they connect.

The equivalent scp to what you show in your sftp session is:

> scp ehealth@2e2ehpr01:modules/remotepoller/spool/rpCfg.3952.1322675313.dci .

(Quoted to prevent my mailer from wrapping the line.)

> C:\Users\ehealth> C:\Users\ehealth>sftp ehealth@2e2ehpr01 Connected
> to 2e2ehpr01. cygwin warning: MS-DOS style path detected:

Now you have a second opinion telling you to stop using CMD and DOS 
style paths with Cygwin.  This one comes from the developers of the core 
Cygwin DLL, rather than some random guy answering questions on the Internet.

> No entry for terminal type "nutc";

Upgrading to the latest Cygwin and using its new MinTTY based Bash shell 
icon will fix this.  It doesn't have anything to do with your present 
problem, but the misconfiguration it warns about might cause some other 
failure for you down the line.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

