<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: corrupt files after ftp transfer in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/corrupt-files-after-ftp-transfer/m-p/3309849#M82983</link>
    <description>but I must send these files in ascii mode !</description>
    <pubDate>Sat, 19 Jun 2004 16:19:52 GMT</pubDate>
    <dc:creator>'chris'</dc:creator>
    <dc:date>2004-06-19T16:19:52Z</dc:date>
    <item>
      <title>corrupt files after ftp transfer</title>
      <link>https://community.hpe.com/t5/operating-system-linux/corrupt-files-after-ftp-transfer/m-p/3309845#M82979</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;I transfer TEXT files via ftp in ascii mode&lt;BR /&gt;from linux to the WIN2000 ftp server using a perlscript:&lt;BR /&gt;-----------------------------------------------&lt;BR /&gt;my $ftp = Net::FTP-&amp;gt;new ($server, Timeout =&amp;gt; 9000, Debug =&amp;gt; 3); &lt;BR /&gt;$ftp or die "$server: cannot connect: $@";&lt;BR /&gt;$ftp-&amp;gt;login ($user,$passwd) or&lt;BR /&gt;die "$_: Could not login: " . $ftp-&amp;gt;message;&lt;BR /&gt;# Put file &lt;BR /&gt;$ftp-&amp;gt;put ($file) or&lt;BR /&gt;die "$server: cannot put $file: " . $ftp-&amp;gt;message;&lt;BR /&gt;$ftp-&amp;gt;quit;&lt;BR /&gt;-----------------------------------------------&lt;BR /&gt;but files after transfer are corrupt.&lt;BR /&gt;I get between text lines someting like:&lt;BR /&gt;Â   03 &lt;BR /&gt;or some special not standard symbols, that I cannot copy to the browser.&lt;BR /&gt;&lt;BR /&gt;knows someone, what reason could be and how can I fix this problem ?&lt;BR /&gt;I cannot transfer these files in binary mod</description>
      <pubDate>Sat, 19 Jun 2004 14:07:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/corrupt-files-after-ftp-transfer/m-p/3309845#M82979</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2004-06-19T14:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: corrupt files after ftp transfer</title>
      <link>https://community.hpe.com/t5/operating-system-linux/corrupt-files-after-ftp-transfer/m-p/3309846#M82980</link>
      <description>i am not good in perl .. but ftp needs to be told taht u r trying to transfer an ascii file not binary .. or vice versa&lt;BR /&gt;&lt;BR /&gt;ftp &amp;gt; bin or ascii&lt;BR /&gt;&lt;BR /&gt;Kaps</description>
      <pubDate>Sat, 19 Jun 2004 14:48:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/corrupt-files-after-ftp-transfer/m-p/3309846#M82980</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2004-06-19T14:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: corrupt files after ftp transfer</title>
      <link>https://community.hpe.com/t5/operating-system-linux/corrupt-files-after-ftp-transfer/m-p/3309847#M82981</link>
      <description>I've tried to put: &lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;ascii();&lt;BR /&gt;&lt;BR /&gt;but it still doesn't help.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 19 Jun 2004 15:02:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/corrupt-files-after-ftp-transfer/m-p/3309847#M82981</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2004-06-19T15:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: corrupt files after ftp transfer</title>
      <link>https://community.hpe.com/t5/operating-system-linux/corrupt-files-after-ftp-transfer/m-p/3309848#M82982</link>
      <description>i think u r trying a binary can u try with "bin"&lt;BR /&gt;&lt;BR /&gt;Kaps</description>
      <pubDate>Sat, 19 Jun 2004 15:29:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/corrupt-files-after-ftp-transfer/m-p/3309848#M82982</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2004-06-19T15:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: corrupt files after ftp transfer</title>
      <link>https://community.hpe.com/t5/operating-system-linux/corrupt-files-after-ftp-transfer/m-p/3309849#M82983</link>
      <description>but I must send these files in ascii mode !</description>
      <pubDate>Sat, 19 Jun 2004 16:19:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/corrupt-files-after-ftp-transfer/m-p/3309849#M82983</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2004-06-19T16:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: corrupt files after ftp transfer</title>
      <link>https://community.hpe.com/t5/operating-system-linux/corrupt-files-after-ftp-transfer/m-p/3309850#M82984</link>
      <description>Chris,&lt;BR /&gt;&lt;BR /&gt;I 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",&lt;BR /&gt;&lt;BR /&gt;eg: #unix2dos myfile.txt --&amp;gt; would convert the linux text file into dos format and replace it.&lt;BR /&gt;&lt;BR /&gt;To see more options with unix2dos,&lt;BR /&gt;# man unix2dos &lt;BR /&gt;use -n option to write a new file instead of replacing it.&lt;BR /&gt;&lt;BR /&gt;In your scenario, you may put a shell script first to do the format conversion and call the perl script from the shessl script.&lt;BR /&gt;&lt;BR /&gt;regds,&lt;BR /&gt;Abdul.</description>
      <pubDate>Sat, 19 Jun 2004 17:57:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/corrupt-files-after-ftp-transfer/m-p/3309850#M82984</guid>
      <dc:creator>Abdul Rahiman</dc:creator>
      <dc:date>2004-06-19T17:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: corrupt files after ftp transfer</title>
      <link>https://community.hpe.com/t5/operating-system-linux/corrupt-files-after-ftp-transfer/m-p/3309851#M82985</link>
      <description>thanks !</description>
      <pubDate>Sat, 01 Jan 2005 17:30:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/corrupt-files-after-ftp-transfer/m-p/3309851#M82985</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2005-01-01T17:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: corrupt files after ftp transfer</title>
      <link>https://community.hpe.com/t5/operating-system-linux/corrupt-files-after-ftp-transfer/m-p/3309852#M82986</link>
      <description>firewall was a problem, because our firewall doesn't support autosense.&lt;BR /&gt;&lt;BR /&gt;I set the port on the sitch to half duplex and now it works without any problems.</description>
      <pubDate>Fri, 15 Jun 2007 09:22:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/corrupt-files-after-ftp-transfer/m-p/3309852#M82986</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2007-06-15T09:22:22Z</dc:date>
    </item>
  </channel>
</rss>

