<?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: Text file to transfer to HPUX via Samba in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/text-file-to-transfer-to-hpux-via-samba/m-p/3822593#M100324</link>
    <description>This problem is the first thing that SAMBA users discover about different operating systems, that is, they aren't compatible. SAMBA can work as a NAS device where PC users can store files on the HP-UX box, but as a mechanism to exchange plain ASCII data, you will have to go through the pain of conversion in both directions all the time.&lt;BR /&gt; &lt;BR /&gt;Now if there are binary data files and there are applications that run on both systems that can read these binary files, all is well. Otherwise, ftp is a better choice because it understands how to convert ASCII files between any computer (Macs, mainframes, PCs, etc).</description>
    <pubDate>Thu, 13 Jul 2006 07:11:07 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2006-07-13T07:11:07Z</dc:date>
    <item>
      <title>Text file to transfer to HPUX via Samba</title>
      <link>https://community.hpe.com/t5/operating-system-linux/text-file-to-transfer-to-hpux-via-samba/m-p/3822589#M100320</link>
      <description>I'm stumped as I cannot find any solution.&lt;BR /&gt;&lt;BR /&gt;Samba in my HPUX is working fine.  I am able to copy files between Windows and UNIX(via windows explorer). My problem is that when a text file from windows is saved into the home directory in unix, the text file has the "^M" at the end of each line.  I know how to use FTP but my concern is for the common users.  Another thing, some users are able to copy the text file to unix without the "^M" character in the unix file.  While other users, when they save the text file into Samba, there is a "^M"  at the end of each line.&lt;BR /&gt;&lt;BR /&gt;Is there a setting that I'm missing here?  Please help!</description>
      <pubDate>Wed, 12 Jul 2006 22:20:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/text-file-to-transfer-to-hpux-via-samba/m-p/3822589#M100320</guid>
      <dc:creator>Anthony Villanueva</dc:creator>
      <dc:date>2006-07-12T22:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Text file to transfer to HPUX via Samba</title>
      <link>https://community.hpe.com/t5/operating-system-linux/text-file-to-transfer-to-hpux-via-samba/m-p/3822590#M100321</link>
      <description>Unfortunately there is no setting or workaround for this. Best bet is to use dos2ux utility for getting rid of those pesky Windows Ctrl-M characters at the end of each line.&lt;BR /&gt;&lt;BR /&gt;# dos2ux infile &amp;gt; outfile</description>
      <pubDate>Wed, 12 Jul 2006 22:54:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/text-file-to-transfer-to-hpux-via-samba/m-p/3822590#M100321</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-07-12T22:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Text file to transfer to HPUX via Samba</title>
      <link>https://community.hpe.com/t5/operating-system-linux/text-file-to-transfer-to-hpux-via-samba/m-p/3822591#M100322</link>
      <description>There is no setting to change this, as Sandman pointed out.  Samba is transferring the file as a byte for byte copy of the original and is unaware of the type of file you are transferring.&lt;BR /&gt;&lt;BR /&gt;If you are using Samba just to store files on the HP-UX server then there would be no need to convert the files as you would be using them on Windows.  Can you give details of the way you are using the text files?&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Darren.</description>
      <pubDate>Thu, 13 Jul 2006 04:21:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/text-file-to-transfer-to-hpux-via-samba/m-p/3822591#M100322</guid>
      <dc:creator>Darren Prior</dc:creator>
      <dc:date>2006-07-13T04:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Text file to transfer to HPUX via Samba</title>
      <link>https://community.hpe.com/t5/operating-system-linux/text-file-to-transfer-to-hpux-via-samba/m-p/3822592#M100323</link>
      <description>Anthony,&lt;BR /&gt;&lt;BR /&gt;You're seeing '^M' at the end of each line because of the difference in DOS/Windows and *nix line termination characters.  DOS/Windows represents the end of a line by a CR followed by a LF, while *nix OSes use just a LF character.  So the DOS/Windows CR character shows up as '^M' under *nix.&lt;BR /&gt;&lt;BR /&gt;If you do need to convert the textfiles (rather than just store them on your HP-UX box),  I would suggest automating the conversion process.  Create "drop folders" under HP-UX, and schedule conversion scripts via cron.&lt;BR /&gt;&lt;BR /&gt;For example, say you had the following directory structure:&lt;BR /&gt;&lt;BR /&gt;1. /text/dos2ux/in&lt;BR /&gt;2. /text/dos2ux/out&lt;BR /&gt;3. /text/ux2dos/in&lt;BR /&gt;4. /text/ux2dos/out&lt;BR /&gt;&lt;BR /&gt;You could then create/schedule this script for (1) and (2):&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;for f in $(ls /text/dos2ux/in)&lt;BR /&gt;do&lt;BR /&gt;  dos2ux ${f} &amp;amp;&amp;amp;\&lt;BR /&gt;  mv ${f} /text/dos2ux/out ||\&lt;BR /&gt;  mv ${f} /text/dos2ux/failed&lt;BR /&gt;done&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;And this script for (3) and (4):&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;for f in $(ls /text/ux2dos/in)&lt;BR /&gt;do&lt;BR /&gt;  ux2dos ${f} &amp;amp;&amp;amp;\&lt;BR /&gt;  mv ${f} /text/ux2dos/out ||\&lt;BR /&gt;  mv ${f} /text/ux2dos/failed&lt;BR /&gt;done&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;Set up the appropriate samba shares, and instruct users on their use.  Then schedule the scripts to run every minute or so.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Thu, 13 Jul 2006 06:48:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/text-file-to-transfer-to-hpux-via-samba/m-p/3822592#M100323</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-07-13T06:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Text file to transfer to HPUX via Samba</title>
      <link>https://community.hpe.com/t5/operating-system-linux/text-file-to-transfer-to-hpux-via-samba/m-p/3822593#M100324</link>
      <description>This problem is the first thing that SAMBA users discover about different operating systems, that is, they aren't compatible. SAMBA can work as a NAS device where PC users can store files on the HP-UX box, but as a mechanism to exchange plain ASCII data, you will have to go through the pain of conversion in both directions all the time.&lt;BR /&gt; &lt;BR /&gt;Now if there are binary data files and there are applications that run on both systems that can read these binary files, all is well. Otherwise, ftp is a better choice because it understands how to convert ASCII files between any computer (Macs, mainframes, PCs, etc).</description>
      <pubDate>Thu, 13 Jul 2006 07:11:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/text-file-to-transfer-to-hpux-via-samba/m-p/3822593#M100324</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-07-13T07:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Text file to transfer to HPUX via Samba</title>
      <link>https://community.hpe.com/t5/operating-system-linux/text-file-to-transfer-to-hpux-via-samba/m-p/3822594#M100325</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Newer versions of Samba have allowed me to correct this problem. When I upgraded to a CIFS/9000 version based on Samba 3, this specific issue stopped happening on my Samba servers.&lt;BR /&gt;&lt;BR /&gt;The latest version of the server is available on &lt;A href="http://software.hp.com" target="_blank"&gt;http://software.hp.com&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Search for CIFS/9000&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 13 Jul 2006 07:22:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/text-file-to-transfer-to-hpux-via-samba/m-p/3822594#M100325</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-07-13T07:22:24Z</dc:date>
    </item>
  </channel>
</rss>

