public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* ASCII ftp transfer contains ^M
@ 2002-04-18  1:16 lau bella
  2002-04-18  7:40 ` Larry Hall (RFK Partners, Inc)
  0 siblings, 1 reply; 2+ messages in thread
From: lau bella @ 2002-04-18  1:16 UTC (permalink / raw)
  To: cygwin

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 ?

thanks






_______________________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk

--
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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ASCII ftp transfer contains ^M
  2002-04-18  1:16 ASCII ftp transfer contains ^M lau bella
@ 2002-04-18  7:40 ` Larry Hall (RFK Partners, Inc)
  0 siblings, 0 replies; 2+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2002-04-18  7:40 UTC (permalink / raw)
  To: lau bella, cygwin

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@rfk.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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-18 14:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-18  1:16 ASCII ftp transfer contains ^M lau bella
2002-04-18  7:40 ` Larry Hall (RFK Partners, Inc)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).