X-Recipient: archive-cygwin AT delorie DOT 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 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 Subject: Re: File size error using sftp References: <9E9DD545D034B84B935BB50A739B078B05516E8D15 AT sha-exch12 DOT shared DOT ifeltd DOT com> <9E9DD545D034B84B935BB50A739B078B0551EFA997 AT sha-exch12 DOT shared DOT ifeltd DOT 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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 AT 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 AT 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