The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
*** glibc detected *** double free or corruption: 0x40236ff4 *** norsk hedensk High Level Programming 19 11-14-2008 01:43 PM
NTFS corruption under w2k but not under suse 9.2 mickepe Windows & DOS: Issues & Discussions 4 08-05-2005 09:19 PM
text files, ASCII files, binary files and ftp transfers Perderabo Answers to Frequently Asked Questions 0 04-08-2004 05:25 PM
data corruption with ftp transfer malcom UNIX for Advanced & Expert Users 12 08-04-2003 08:38 AM
file corruption shibz UNIX for Advanced & Expert Users 5 09-06-2002 12:56 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-02-2007
colesga colesga is offline
Registered User
  
 

Join Date: Mar 2007
Location: London
Posts: 7
ftp zip files corruption

Hi

I have a zip file that I am ftping to another server. After I have ztped the file it is corrupt and cannot be opened by winzip.

Can anyone throw any light on to why this would happen.

I have no problems with sending the individual files, but when zipped into one file it becomes corrupt.

Cheers
Gary
  #2 (permalink)  
Old 08-02-2007
benefactr benefactr is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 71
try binary transfer mode.
  #3 (permalink)  
Old 08-02-2007
colesga colesga is offline
Registered User
  
 

Join Date: Mar 2007
Location: London
Posts: 7
How do I set it to binary?

I am doing the below at the moment.

echo "open $FTP_MACHINE" > $tmpcmd
echo "user $FTP_USER $FTP_PWD" >> $tmpcmd
echo "put *.zip" >> $tmpcmd
echo "bye" >> $tmpcmd

ftp -n -v < $tmpcmd > ${tmpcmd}.out

Cheers
Gary
  #4 (permalink)  
Old 08-02-2007
benefactr benefactr is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 71
put in "bi"


Quote:
Originally Posted by colesga View Post
How do I set it to binary?

I am doing the below at the moment.

echo "open $FTP_MACHINE" > $tmpcmd
echo "user $FTP_USER $FTP_PWD" >> $tmpcmd
echo "bi" >> $tmpcmd <<<<<-----this should do it.
echo "put *.zip" >> $tmpcmd
echo "bye" >> $tmpcmd

ftp -n -v < $tmpcmd > ${tmpcmd}.out

Cheers
Gary
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting 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




All times are GMT -4. The time now is 07:32 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0