Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Why corrupted files when FTP'ing using tcsh?

Why corrupted files when FTP'ing using tcsh?
Thread Tools
Mac Enthusiast
Join Date: Dec 2002
Location: Newport Beach, CA
Status: Offline
Reply With Quote
Jan 25, 2003, 03:42 PM
 
Why is it when I retrieve a file from an ftp server through the Unix shell (tcsh) the file is always corrupted. Usually I'm getting a .sit file, and stuffit says it can't work with it because it is not a compressed file. When I get the very same file using the FTP app "Transmit" the file works perfectly. Here's my tcsh transcript:

ftp> get Finished.sit
local: Finished.sit remote: Finished.sit
227 Entering Passive Mode (XXX,XXX,XXX,XX,X,XX).
125 Data connection already open; Transfer starting.
100% |************************************************* **| 8878 KB 240.19 KB/s 00:00 ETA
226 Transfer complete.
WARNING! 35093 bare linefeeds received in ASCII mode.
File may not have transferred correctly.
9092031 bytes received in 00:37 (239.84 KB/s)
ftp> close
221
ftp> exit


I suspect it is something to do with the "ASCII" mode, since a .sit file is a binary file. Or something else?

Be a traveler, not a tourist
     
Zim
Senior User
Join Date: Apr 2001
Location: Cary, NC
Status: Offline
Reply With Quote
Jan 25, 2003, 05:02 PM
 
At the ftp prompt type "bin".

Mike
     
EnVoy  (op)
Mac Enthusiast
Join Date: Dec 2002
Location: Newport Beach, CA
Status: Offline
Reply With Quote
Jan 25, 2003, 05:10 PM
 
Just answered my own question. Guess it helps when you read the man pages!

Thanks...

Be a traveler, not a tourist
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:13 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2