<?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 Stumped in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/stumped/m-p/2621108#M925909</link>
    <description>I have a problem that i cannot figure out?  I have an ftp process that ftp's a file to the HP systems 11.x.  For some unknown reason, after it is ftp'd to my hp server, it has an added 0d or 0a character at the carriage return, so the file is not the same each time it is ftp'd?  &lt;BR /&gt;&lt;BR /&gt;Has anyone seen this issue before?  Please advise?&lt;BR /&gt;&lt;BR /&gt;Vito</description>
    <pubDate>Tue, 27 Nov 2001 22:56:21 GMT</pubDate>
    <dc:creator>Vito Sarducci</dc:creator>
    <dc:date>2001-11-27T22:56:21Z</dc:date>
    <item>
      <title>Stumped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stumped/m-p/2621108#M925909</link>
      <description>I have a problem that i cannot figure out?  I have an ftp process that ftp's a file to the HP systems 11.x.  For some unknown reason, after it is ftp'd to my hp server, it has an added 0d or 0a character at the carriage return, so the file is not the same each time it is ftp'd?  &lt;BR /&gt;&lt;BR /&gt;Has anyone seen this issue before?  Please advise?&lt;BR /&gt;&lt;BR /&gt;Vito</description>
      <pubDate>Tue, 27 Nov 2001 22:56:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stumped/m-p/2621108#M925909</guid>
      <dc:creator>Vito Sarducci</dc:creator>
      <dc:date>2001-11-27T22:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Stumped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stumped/m-p/2621109#M925910</link>
      <description>it sounds like the type isn't being set correctly.&lt;BR /&gt;&lt;BR /&gt;What sort of machine is it being ftp'd FROM?</description>
      <pubDate>Tue, 27 Nov 2001 23:12:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stumped/m-p/2621109#M925910</guid>
      <dc:creator>Scott Van Kalken</dc:creator>
      <dc:date>2001-11-27T23:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Stumped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stumped/m-p/2621110#M925911</link>
      <description>If the machine you are ftping from is another unix, then type doesn't matter. If it is a Windows/Dos machine, then be sure to set type to "ascii".&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Tue, 27 Nov 2001 23:26:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stumped/m-p/2621110#M925911</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2001-11-27T23:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Stumped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stumped/m-p/2621111#M925912</link>
      <description>0A is hex for an ascii line feed.&lt;BR /&gt;0D is hex for a carriage return in ascii.&lt;BR /&gt;Turn this option off or remove from the file prior to ftp.&lt;BR /&gt;dl</description>
      <pubDate>Tue, 27 Nov 2001 23:27:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stumped/m-p/2621111#M925912</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2001-11-27T23:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Stumped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stumped/m-p/2621112#M925913</link>
      <description>Hi Vito,&lt;BR /&gt;&lt;BR /&gt;You need to ftp the file in ascii mode.&lt;BR /&gt;&lt;BR /&gt;ftp has 2 modes: binary and ascii.  binary mode transfers the file just like it is while ascii mode performs a translation (if needed) so that the ascii file will be in the native ascii format of the destination host.  The most common translation is done between Windows and UNIX systems.  Windows uses CR-LF (charriage return and line feed) to terminate lines is ascii files while UNIX uses a NL (newline) character.  A NL is actually the same ascii character as a LF.&lt;BR /&gt;&lt;BR /&gt;From an earlier post of mine:&lt;BR /&gt;&lt;BR /&gt;^M is a carriage return. ^J is a line feed or in UNIX a newline. Verify this with man ascii. &lt;BR /&gt;&lt;BR /&gt;When UNIX sees ^J it is interpreted as advance one line and return cursor to the leftmost column. DOS only interprets ^J as advance one line (as if you manually turned the platen on a typewriter). DOS needs an ^M to move the cursor to the leftmost column. &lt;BR /&gt;&lt;BR /&gt;So one should always ftp ascii files in ascii mode because a function of ftp is the translation of ^J^M for DOS to just ^J for UNIX. dos2ux does the same thing to a file if it was transferred in binary mode. &lt;BR /&gt;&lt;BR /&gt;If you just cat the file, extra ^M characters are not seen. It's just as if you are moving the cursor to the leftmost position and doing it again. vi or od will show the extra characters.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Wed, 28 Nov 2001 00:14:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stumped/m-p/2621112#M925913</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-11-28T00:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Stumped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stumped/m-p/2621113#M925914</link>
      <description>I guess you're using a Windows/Dos machine, so set transfer type to "ascii"&lt;BR /&gt;&lt;BR /&gt;that should get you unstumped&lt;BR /&gt;&lt;BR /&gt;;-)&lt;BR /&gt;&lt;BR /&gt;d_b</description>
      <pubDate>Wed, 28 Nov 2001 01:06:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stumped/m-p/2621113#M925914</guid>
      <dc:creator>Mary Ann Lipa</dc:creator>
      <dc:date>2001-11-28T01:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Stumped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stumped/m-p/2621114#M925915</link>
      <description>Did you make sure that the&lt;BR /&gt;FTP mode had been "binary"&lt;BR /&gt;(if in doubt, enter "binary"&lt;BR /&gt;at the prompt)?&lt;BR /&gt;In "ascii" mode line feeds&lt;BR /&gt;are converted to CR/LF,&lt;BR /&gt;which might explain the&lt;BR /&gt;additional 0x0d.</description>
      <pubDate>Thu, 29 Nov 2001 11:01:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stumped/m-p/2621114#M925915</guid>
      <dc:creator>Ulrich Deiters</dc:creator>
      <dc:date>2001-11-29T11:01:52Z</dc:date>
    </item>
  </channel>
</rss>

