Winzip and FTP to UNIX

Hi
I have to zip a 200 Meg file and ftp it to a UNIX box
im using the command line interface of winzip (wzzip) to zip the file
Due to the diff in treatment of line feeds and carriage returns between UNIX and DOS environments the file i zip and send when unzipped on the unix box has carraige returns in them
Has anyone come across sucha an issue and how did u resolve this
viveksuvarnaAsked:
Who is Participating?
 
Steve KnightConnect With a Mentor IT ConsultancyCommented:
Try dos2unix.exe from here then and in your batch file to send the file first convert it with DSO2UNIX then ZIP it then FTP it...

http://www.freedownloadscenter.com/Utilities/Misc__Utilities/DOS2UNIX_UNIX2DOS.html

(Googled for above, have not tried this particular download version)

Steve
0
 
sunnycoderCommented:
Hi viveksuvarna,

> when unzipped on the unix box has carraige returns in them
On the Unix prompt execute command

dos2unix /path/to/file

The command will performed the necessary conversions

Cheers!
Sunnycoder
0
 
viveksuvarnaAuthor Commented:
Yeah agreed i can dos2unix it
But i cant change any code on the unix side
so any code changes /manipulations i do has to be b4 i ftp the file across

0
 
sunnycoderCommented:
You wont have to change any code unless you are talking about porting the code rather than simply transfering it ....
0
 
Steve KnightIT ConsultancyCommented:
Sounds good to me.
0
All Courses

From novice to tech pro — start learning today.