delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/18/10:37:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <4.3.1.2.20020418102612.0584d170@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
Date: Thu, 18 Apr 2002 10:33:06 -0400
To: lau bella <bellalauhk AT yahoo DOT com DOT hk>, cygwin AT cygwin DOT com
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: ASCII ftp transfer contains ^M
In-Reply-To: <20020418075452.42347.qmail@web20801.mail.yahoo.com>
Mime-Version: 1.0

At 03:54 AM 4/18/2002, lau bella wrote:
>Hi all,
>
>I installed Cygwin 1.3.10 in w2k advanced server
>(SP2).
>
>I create a DOS text file A with notepad in PC. The
>size of file A displayed as 80 bytes in DOS prompt. I
>used ASCII mode to transfer file A to the w2k advanced
>server (using Cygwin ftp server). The size of file A
>displayed as 80 bytes in Cygwin. When I use Cygwin
>command 'dos2unix' to convert file A. The file size
>changed to 75 byte.
>
>File A may contain ^M characters. I want Cygwin
>convert file A from DOS format to UNIX format
>automatically after ftp. How can i do that, any
>setting needed ?



For any possible settings needed, I'll direct you to the FTP
man page.  If there's a way to do it, it will be listed there.
In general, this is not a Cygwin issue.  It's a general FTP 
issue.  You would have the same result if you used a native 
Windows FTP server.  Cygwin's FTP server will create native 
text files just like a Windows FTP server will when text mode
transfer is selected. 



Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019