<?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 Ftp transfer corrupts script by adding ctrl-m characters to end of every line. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-transfer-corrupts-script-by-adding-ctrl-m-characters-to-end/m-p/2492411#M19681</link>
    <description>I have downloadet a script from HP Resource Center (a patch PHCO_17318) to my Win2000 pc.&lt;BR /&gt;&lt;BR /&gt;The script was then copied to a HP9000 K859 server running HP-UX B11.00 A, via ftp 'put' command in binery mode.&lt;BR /&gt;&lt;BR /&gt;However the script cannot run, because a ^M (ctrl-M) was added to the end of each line in the file. This shows in the vi editor.&lt;BR /&gt;&lt;BR /&gt;How can the adding of the ^M (ctrl-M) characters be avoidet?&lt;BR /&gt;&lt;BR /&gt;Your help/hints is much appreciated.</description>
    <pubDate>Mon, 12 Feb 2001 10:22:30 GMT</pubDate>
    <dc:creator>Michael Hemmingsen</dc:creator>
    <dc:date>2001-02-12T10:22:30Z</dc:date>
    <item>
      <title>Ftp transfer corrupts script by adding ctrl-m characters to end of every line.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-transfer-corrupts-script-by-adding-ctrl-m-characters-to-end/m-p/2492411#M19681</link>
      <description>I have downloadet a script from HP Resource Center (a patch PHCO_17318) to my Win2000 pc.&lt;BR /&gt;&lt;BR /&gt;The script was then copied to a HP9000 K859 server running HP-UX B11.00 A, via ftp 'put' command in binery mode.&lt;BR /&gt;&lt;BR /&gt;However the script cannot run, because a ^M (ctrl-M) was added to the end of each line in the file. This shows in the vi editor.&lt;BR /&gt;&lt;BR /&gt;How can the adding of the ^M (ctrl-M) characters be avoidet?&lt;BR /&gt;&lt;BR /&gt;Your help/hints is much appreciated.</description>
      <pubDate>Mon, 12 Feb 2001 10:22:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-transfer-corrupts-script-by-adding-ctrl-m-characters-to-end/m-p/2492411#M19681</guid>
      <dc:creator>Michael Hemmingsen</dc:creator>
      <dc:date>2001-02-12T10:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ftp transfer corrupts script by adding ctrl-m characters to end of every line.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-transfer-corrupts-script-by-adding-ctrl-m-characters-to-end/m-p/2492412#M19682</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This happened because you didn't set your ftp in 'binary' mode.&lt;BR /&gt;&lt;BR /&gt;On a PC, all lines end with the pair &lt;CARRIAGE-RETURN&gt;&lt;LINEFEED&gt; while you only have linefeed on unix.&lt;BR /&gt;&lt;BR /&gt;You may use the 'dos2unix' command to convert your file or, with vi:&lt;BR /&gt;:1,$s/&lt;CTRL-V&gt;&lt;CTRLM&gt;//&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;&lt;/CTRLM&gt;&lt;/CTRL-V&gt;&lt;/LINEFEED&gt;&lt;/CARRIAGE-RETURN&gt;</description>
      <pubDate>Mon, 12 Feb 2001 10:25:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-transfer-corrupts-script-by-adding-ctrl-m-characters-to-end/m-p/2492412#M19682</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2001-02-12T10:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ftp transfer corrupts script by adding ctrl-m characters to end of every line.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-transfer-corrupts-script-by-adding-ctrl-m-characters-to-end/m-p/2492413#M19683</link>
      <description>Correction,&lt;BR /&gt;&lt;BR /&gt;If the file was saved on a PC, you should use the 'ASCII' mode as this will convert CR-LF pairs to LF.&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Feb 2001 10:27:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-transfer-corrupts-script-by-adding-ctrl-m-characters-to-end/m-p/2492413#M19683</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2001-02-12T10:27:03Z</dc:date>
    </item>
  </channel>
</rss>

