- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Networking
- >
- cannot transfer CSV Files from linux to windows co...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 12:00 AM
тАО06-22-2004 12:00 AM
I have a big problem and need really help.
I should transfer CSV files from linux to the WIN2000 ftp server via perl script, but all files after transfer are currupt.
and no matter how I ftp these files:
perl script, from shell Konsole,gftp,
passive transfer,ascii or binary.
they are always corrupt after ftp transfer.
should I encode or convert to the MS Windows format and how it works using perl ?
I can only transfer via ftp these files.
windows to windows transfer all files correctly.
kind regards
chris
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 12:35 AM
тАО06-22-2004 12:35 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 01:13 AM
тАО06-22-2004 01:13 AM
Re: cannot transfer CSV Files from linux to windows correctly
I've tried to convert with unix2dos, but still doesn't work.
greetings
chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 01:16 AM
тАО06-22-2004 01:16 AM
Re: cannot transfer CSV Files from linux to windows correctly
C:\stupidmachine\ rcp -b linuxbox.root:/some directory/* .
your linux box has to "trust" the windoze box (man that is scary).
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 01:25 AM
тАО06-22-2004 01:25 AM
Re: cannot transfer CSV Files from linux to windows correctly
How about considering the use of samba?
That should work as I do something of the sort for my SAS users who need to recuperate the csv file into excel from a shared drive mounted on their PCs.
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 01:43 AM
тАО06-22-2004 01:43 AM
Re: cannot transfer CSV Files from linux to windows correctly
I cannot use samba over the internet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 01:52 AM
тАО06-22-2004 01:52 AM
Re: cannot transfer CSV Files from linux to windows correctly
set crt=21
set encoding=8bit
set charset=iso-8859-1
Just thoughts...
Good luck
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 01:57 AM
тАО06-22-2004 01:57 AM
Re: cannot transfer CSV Files from linux to windows correctly
Have you tried to move a single file manually to windoze, then move it back to linux to see if it is actually corrupted? (of course use BINARY mode both ways).
What errors on windoze do you get?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 02:00 AM
тАО06-22-2004 02:00 AM
Re: cannot transfer CSV Files from linux to windows correctly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 02:18 AM
тАО06-22-2004 02:18 AM
Re: cannot transfer CSV Files from linux to windows correctly
I cannot control the remote server.
I transfer all files from LINUX TO WINDOWS.
on the remote site it's:
220 szhstorage Microsoft FTP Service (Version 5.0).
if I do ftp transfer from any windows maschine to this remote Mickysoft server all files are OK.
but all files transfered from linux are corrupt.
I've tried to move this file from linux to windows, move back to linux, transfer again, but still corrupt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 02:27 AM
тАО06-22-2004 02:27 AM
Re: cannot transfer CSV Files from linux to windows correctly
Courage!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 02:37 AM
тАО06-22-2004 02:37 AM
Re: cannot transfer CSV Files from linux to windows correctly
Ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 04:08 AM
тАО06-22-2004 04:08 AM
Re: cannot transfer CSV Files from linux to windows correctly
http://www.download.com/Xftp/3000-2160-10293316.html?tag=lst-0-6
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 09:50 AM
тАО06-22-2004 09:50 AM
Re: cannot transfer CSV Files from linux to windows correctly
---------------------------------------------------------------------------------------
I,ZZ0387778,Name Firstname,USD,street 166,city,,,,B:266.27.07,3654,USD,P:351.15.79,,,DE,USD107,
I,ZZ0387780,Name Firstname,USD,street,city,,,,B:792.58.50,6344,USD,P:485.29.85,,,DE,USD001,
I,ZZ0274516,Name Firstname,USD,street 2,city,,,,B:834.33.23,3292,USD,P:284.89.60,,,DE,USD033,
I,ZZ0558613,Name Firstname,USD,street 102,city,,,,,8032,USD,P:383.31.96,,,DE,USD999,
---------------------------------------------------------------------------------------
bed file (after ftp transfer) looks:
---------------------------------------------------------------------------------------
I,ZZ0387778,Name Firstname,USD,street 166,city,,,,B:266.27.07,3654,USD,P:351.15.79,,,DE,USD107,
I,ZZ0387780,Name Firstname,USD,street,city,,,,B:├Г ├Г d├Г┬о├Г ├Г k├В┬г├Г┬░9├Г ├Е┬б├Г ├Г ├Г┬╝├В┬▒R├Г┬й├Г Z├Г┬╣├Г┬╝├Г┬б├Г ├Г ├Г ├Г┬╛
I,ZZ0274516,Name Firstname,USD,street 2,city,,,,B:834.33.23,3292,USD,P:284.89.60,,,DE,USD033,
I,ZZ0558613,Name Firstname,USD,street 102,city,,,,,8032,USD,P:383.31.96,,,DE,USD999,
---------------------------------------------------------------------------------------
with xftp works, but I cannot use it in my case.
what can xftp, what the others cannot do ?
how to to simulate xftp using perl ?
may
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 09:57 AM
тАО06-22-2004 09:57 AM
Re: cannot transfer CSV Files from linux to windows correctly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 10:01 AM
тАО06-22-2004 10:01 AM
Re: cannot transfer CSV Files from linux to windows correctly
Because in the More information section of my previous link says
The FTP protocol offers two types of transfers: binary and ASCII. In a binary download (which is always used by the ITC), the FTP server sends to the client the exact contents of a file. In a binary upload, the FTP server stores exactly what the client sends. This is desirable behavior for most types of files, such as executable programs, images, word processor documents, and so on.
Ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 10:33 AM
тАО06-22-2004 10:33 AM
Re: cannot transfer CSV Files from linux to windows correctly
I've tried already to transfer binary, but it doesn't work either.
I get these files from a IBM machine and they are encoded in EBCDIC, I think.
I should rename files and send automatically via ftp to the remote windows machine.
the solution can be, to encode using perl from EBCDIC to the windows standard ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 08:09 PM
тАО06-22-2004 08:09 PM
Re: cannot transfer CSV Files from linux to windows correctly
http://www.microsoft.com/technet/itsolutions/migration/linux/mvc/lintowin.mspx
HTH
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2004 12:21 AM
тАО06-23-2004 12:21 AM
Re: cannot transfer CSV Files from linux to windows correctly
Is your IBM an mainframe mvs/OS390 ?
I would start by looking at the files transmetted from IBM to linux.
Is the file what you expect? when you look at it with vi , all seems mormal?
There are 2 cases with tranfer to mainframes:
ascii/ebcdic and block format
You can ask the mainframe to translate to ascii
From /to a GCOS system I had to use dd:
dd if= of=
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2004 01:36 AM
тАО06-23-2004 01:36 AM
Re: cannot transfer CSV Files from linux to windows correctly
OS from the IBM maschine is AS400.
If I look this file with vi or kwrite looks always fine.
and what about lenght for fixed block size ?
The files, which I get from AS400 have each time differnt size.
I played a little bit with language settings from linux and for a short time all transfers were correctly, but after reboot like before.
and xftp from
http://www.llnl.gov/ia/xftp.html
transfer all files always correctly.
knows someone, if I can use xftp from shell Konsole or use it in combination with a perl script ?
greetings
chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2004 02:11 AM
тАО06-23-2004 02:11 AM
Re: cannot transfer CSV Files from linux to windows correctly
MS
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q216/3/99.ASP&NoWebContent=1
Linux
Look at the man page for dd On Solaris, you can use the conv switch to have dd translate ebcdic to ascii.
http://www.uwsg.iu.edu/usail/man/solaris/dd.1.html
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2004 03:12 AM
тАО06-23-2004 03:12 AM
Re: cannot transfer CSV Files from linux to windows correctly
Since to file is ok on your linux I believe ther is no problem from IBM side (have you tried conv=unblock?).
I noticed some time ascii files get corrupted when big amounts in MS...
Try to download a winzip(compatible like zip) on your linux and compress and transfer in binary
What does that give you?
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2004 11:01 AM
тАО06-23-2004 11:01 AM
Re: cannot transfer CSV Files from linux to windows correctly
transfer of zip files doesn't help in my case.
I must transfer ascii these files, otherwise cannot be processed on the remote site.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2004 04:29 PM
тАО06-23-2004 04:29 PM
Re: cannot transfer CSV Files from linux to windows correctly
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2004 09:57 PM
тАО06-23-2004 09:57 PM