<?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 SCP weird behavior in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190348#M680149</link>
    <description>I have a process that unloads a file from our Informix database, then does a scp from the HP/Informix server to a middle man/Linux box. &lt;BR /&gt;&lt;BR /&gt;When I view the files on the HP box the formatting looks perfect, I run the SCP command I lose a field of data in a straight copy.. I thought maybe it was DOS2UNIX issue but it doesn't appear to be.. It is in consistent. Perhaps an SQL issue? But the flat file appears to be in perfect order.. &lt;BR /&gt;&lt;BR /&gt;Any ideas of things to look at would be appreciated.. &lt;BR /&gt;&lt;BR /&gt;The file is generating correctly on HP, &lt;BR /&gt;ReferenceCode, FirstName, LastName, Gender, Group, HomePhone, EmailAddress, Institution&lt;BR /&gt;4040,JOHN F,JONES,M,ADMINS &amp;amp; SUPTS,555-555-1212,jjones@domain.tld,352,&lt;BR /&gt;4370,LEAH C,SMITH,F,ADMINS &amp;amp; SUPTS,555-555-1234,LSMITH@DOMAIN.TLD,57,&lt;BR /&gt;&lt;BR /&gt;After transfer to  Local Server or workstation. &lt;BR /&gt;&lt;BR /&gt;ReferenceCode, FirstName, LastName, Gender, Group, HomePhone, EmailAddress, Institution&lt;BR /&gt;,352,JOHN F,JONES,M,ADMINS &amp;amp; SUPTS,555-555-1212,jjones@domain.tld&lt;BR /&gt;4370,LEAH C,SMITH,F,ADMINS &amp;amp; SUPTS,555-555-1234,LSMITH@DOMAIN.TLD,57,&lt;BR /&gt;</description>
    <pubDate>Wed, 29 Jul 2009 19:25:22 GMT</pubDate>
    <dc:creator>rmueller58</dc:creator>
    <dc:date>2009-07-29T19:25:22Z</dc:date>
    <item>
      <title>SCP weird behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190348#M680149</link>
      <description>I have a process that unloads a file from our Informix database, then does a scp from the HP/Informix server to a middle man/Linux box. &lt;BR /&gt;&lt;BR /&gt;When I view the files on the HP box the formatting looks perfect, I run the SCP command I lose a field of data in a straight copy.. I thought maybe it was DOS2UNIX issue but it doesn't appear to be.. It is in consistent. Perhaps an SQL issue? But the flat file appears to be in perfect order.. &lt;BR /&gt;&lt;BR /&gt;Any ideas of things to look at would be appreciated.. &lt;BR /&gt;&lt;BR /&gt;The file is generating correctly on HP, &lt;BR /&gt;ReferenceCode, FirstName, LastName, Gender, Group, HomePhone, EmailAddress, Institution&lt;BR /&gt;4040,JOHN F,JONES,M,ADMINS &amp;amp; SUPTS,555-555-1212,jjones@domain.tld,352,&lt;BR /&gt;4370,LEAH C,SMITH,F,ADMINS &amp;amp; SUPTS,555-555-1234,LSMITH@DOMAIN.TLD,57,&lt;BR /&gt;&lt;BR /&gt;After transfer to  Local Server or workstation. &lt;BR /&gt;&lt;BR /&gt;ReferenceCode, FirstName, LastName, Gender, Group, HomePhone, EmailAddress, Institution&lt;BR /&gt;,352,JOHN F,JONES,M,ADMINS &amp;amp; SUPTS,555-555-1212,jjones@domain.tld&lt;BR /&gt;4370,LEAH C,SMITH,F,ADMINS &amp;amp; SUPTS,555-555-1234,LSMITH@DOMAIN.TLD,57,&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jul 2009 19:25:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190348#M680149</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2009-07-29T19:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: SCP weird behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190349#M680150</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;The Forum will mangle whitespace; please post an _attachment_ (file) with the text to compare.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 29 Jul 2009 19:29:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190349#M680150</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-07-29T19:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: SCP weird behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190350#M680151</link>
      <description>Jim, See attached..</description>
      <pubDate>Wed, 29 Jul 2009 19:32:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190350#M680151</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2009-07-29T19:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: SCP weird behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190351#M680152</link>
      <description>I tried to tar the files on the hp and transfer I get the same results. the odd part of this the file sizes are identical. &lt;BR /&gt;&lt;BR /&gt;I may have to have our DBA look at the SQL unload files.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jul 2009 19:45:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190351#M680152</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2009-07-29T19:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: SCP weird behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190352#M680153</link>
      <description>so, in the first line, and only the first line ( which is odd in itself) :&lt;BR /&gt;&lt;BR /&gt;the first data field is deleted, and is replaced by the contents of the "next to last field" (,352)????&lt;BR /&gt;&lt;BR /&gt;where is the "bad" example taken from Linux, Windows or ???&lt;BR /&gt;&lt;BR /&gt;what steps were taken, or was this just a straight-forward scp of the dumped data?&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jul 2009 19:52:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190352#M680153</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-07-29T19:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: SCP weird behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190353#M680154</link>
      <description>Old School &lt;BR /&gt;&lt;BR /&gt;On SYSTEM A (HP) I am doing an UNLOAD from an Informix table.. &lt;BR /&gt;&lt;BR /&gt;On SYSTEM B I initiate an SCP in BATCH mode of the unloaded FILES.. &lt;BR /&gt;&lt;BR /&gt;the 1st section is correct, when I initiate a simple &lt;BR /&gt;scp -B username@systemA:/unloadfiles.csv . &lt;BR /&gt;&lt;BR /&gt;the file on SYSTEMB has lost the "4040" for record of JOHN JONES.. this goes on through out the file.. Some have it and others don't.. &lt;BR /&gt;&lt;BR /&gt;I've been scratching my head all afternoon, the files appear letter perfect before the SCP.. &lt;BR /&gt;&lt;BR /&gt;I've seen this kind of stuff with FTP and not toggling ASCII/BIN.. but not with SSH/SCP/SFTP.. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jul 2009 19:56:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190353#M680154</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2009-07-29T19:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: SCP weird behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190354#M680155</link>
      <description>BAD example from a Linux Box.</description>
      <pubDate>Wed, 29 Jul 2009 19:57:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190354#M680155</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2009-07-29T19:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: SCP weird behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190355#M680156</link>
      <description>Old School and James, &lt;BR /&gt;&lt;BR /&gt;I am attaching command sequence. &lt;BR /&gt;&lt;BR /&gt;Step #1 produces a file.. File copies Correctly from HP to Linux &lt;BR /&gt;&lt;BR /&gt;Step #2 produces 3 files, appear correct on HP, copies to Linux loses data&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Step #3 is the actual Linux SCP command.. &lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jul 2009 20:02:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190355#M680156</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2009-07-29T20:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: SCP weird behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190356#M680157</link>
      <description>What command/tool are you using to view the files (in each environment)? &lt;BR /&gt;&lt;BR /&gt;Perhaps there are some invisible control characters within the data. In that case, it might be that the HP-UX viewer ignores the control characters, while the viewer on the other system obeys them. &lt;BR /&gt;&lt;BR /&gt;In this case, a copy/paste from the terminal window won't allow us to see what's wrong, because at that point the damage is already done. &lt;BR /&gt;&lt;BR /&gt;Use "cat -v filename" to display the file with visible symbols in place of invisible characters. Do that on both HP-UX server and the other box. Compare the results.&lt;BR /&gt;&lt;BR /&gt;My first guess would be that there might be something at the end of the "jjones@domain.tld" field that causes the terminal cursor to return to the beginning of the line. Then the field separators and the Institution number overwrite the beginning of the first line.&lt;BR /&gt;&lt;BR /&gt;If you still suspect the file gets corrupted in transfer, run "cksum filename" both before and after the transfer. If the checksums are the same, there is high probability that the content of the file has not changed.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 29 Jul 2009 20:05:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190356#M680157</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-07-29T20:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: SCP weird behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190357#M680158</link>
      <description>matt I am just using either more, cat. &lt;BR /&gt;&lt;BR /&gt;I think I found an issue.. it is putting a ^M after the email and before the "Institution" Not sure why.&lt;BR /&gt;&lt;BR /&gt;Thanks for pointing out more might not show me the character issue. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jul 2009 20:07:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190357#M680158</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2009-07-29T20:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: SCP weird behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190358#M680159</link>
      <description>I am going to run the Output files through dos2ux before initiating the SCP, that seemed to do the trick.. I don't know why it worked for my 1st single script.. That is what had me stumped. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jul 2009 20:18:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190358#M680159</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2009-07-29T20:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: SCP weird behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190359#M680160</link>
      <description>Thanks, Matt for pointing out the ^M not showing in a CAT or MORE, only in VI or editor. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jul 2009 20:34:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-weird-behavior/m-p/5190359#M680160</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2009-07-29T20:34:04Z</dc:date>
    </item>
  </channel>
</rss>

