- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- corrupt files after ftp transfer
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
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
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-19-2004 07:07 AM
06-19-2004 07:07 AM
I transfer TEXT files via ftp in ascii mode
from linux to the WIN2000 ftp server using a perlscript:
-----------------------------------------------
my $ftp = Net::FTP->new ($server, Timeout => 9000, Debug => 3);
$ftp or die "$server: cannot connect: $@";
$ftp->login ($user,$passwd) or
die "$_: Could not login: " . $ftp->message;
# Put file
$ftp->put ($file) or
die "$server: cannot put $file: " . $ftp->message;
$ftp->quit;
-----------------------------------------------
but files after transfer are corrupt.
I get between text lines someting like:
 03
or some special not standard symbols, that I cannot copy to the browser.
knows someone, what reason could be and how can I fix this problem ?
I cannot transfer these files in binary mod
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2004 07:48 AM
06-19-2004 07:48 AM
Re: corrupt files after ftp transfer
ftp > bin or ascii
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2004 08:02 AM
06-19-2004 08:02 AM
Re: corrupt files after ftp transfer
$ftp->ascii();
but it still doesn't help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2004 08:29 AM
06-19-2004 08:29 AM
Re: corrupt files after ftp transfer
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2004 09:19 AM
06-19-2004 09:19 AM
Re: corrupt files after ftp transfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2004 10:57 AM
06-19-2004 10:57 AM
SolutionI bet what you are seeing on Windows is the unix control characters. It is better to convert the unix format file to dos format before you ftp the files. You can do this with simple linux command called "unix2dos",
eg: #unix2dos myfile.txt --> would convert the linux text file into dos format and replace it.
To see more options with unix2dos,
# man unix2dos
use -n option to write a new file instead of replacing it.
In your scenario, you may put a shell script first to do the format conversion and call the perl script from the shessl script.
regds,
Abdul.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2005 09:30 AM
01-01-2005 09:30 AM
Re: corrupt files after ftp transfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2007 02:22 AM
06-15-2007 02:22 AM
Re: corrupt files after ftp transfer
I set the port on the sitch to half duplex and now it works without any problems.