<?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: FTP query in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816966#M269344</link>
    <description>Thanks for the replies. Points assigned.&lt;BR /&gt;&lt;BR /&gt;Bill,&lt;BR /&gt;&lt;BR /&gt;The software is third party so I will write a batch file to remove the last line.&lt;BR /&gt;&lt;BR /&gt;Many Thanks,&lt;BR /&gt;&lt;BR /&gt;Tim</description>
    <pubDate>Tue, 04 Jul 2006 09:12:24 GMT</pubDate>
    <dc:creator>Tim O'Connell</dc:creator>
    <dc:date>2006-07-04T09:12:24Z</dc:date>
    <item>
      <title>FTP query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816957#M269335</link>
      <description>If I create a file in Unix which has for example 5 lines. When I go to a pc &amp;amp; ftp, get this file it ends up with 6 lines on the pc - an extra blank line is inserted at the end. Is there anyway of avoiding this or is there something like sed that could remove the last line on the pc. Its causing me problems passing this file into software which doesn't  like a blank line. Hope someone has come across this.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Tue, 04 Jul 2006 05:16:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816957#M269335</guid>
      <dc:creator>Tim O'Connell</dc:creator>
      <dc:date>2006-07-04T05:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: FTP query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816958#M269336</link>
      <description>try the transfer in bin mode</description>
      <pubDate>Tue, 04 Jul 2006 05:21:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816958#M269336</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2006-07-04T05:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: FTP query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816959#M269337</link>
      <description>Hi Tim, &lt;BR /&gt;&lt;BR /&gt;How did you transfer the file between PC and UNix ? Try to use ascii mode for text files. &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 04 Jul 2006 05:23:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816959#M269337</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-07-04T05:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: FTP query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816960#M269338</link>
      <description>Thanks for the replies.&lt;BR /&gt;I have transferred the file as Ascii but whin I open it in Notepad or Wordpad it has an extra blank line at the end. Bin doesn't work.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Tue, 04 Jul 2006 06:41:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816960#M269338</guid>
      <dc:creator>Tim O'Connell</dc:creator>
      <dc:date>2006-07-04T06:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: FTP query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816961#M269339</link>
      <description>Tim,&lt;BR /&gt;&lt;BR /&gt;The ftp client for Windows is very simple and it can't tell binary from ascii.&lt;BR /&gt;&lt;BR /&gt;If you use it you must know if the file is ascii or binary before you ftp.&lt;BR /&gt;&lt;BR /&gt;There is an HP-UX command called file that will help you determine this.&lt;BR /&gt;&lt;BR /&gt;file fileman.ddr&lt;BR /&gt;&lt;BR /&gt;Will say binary or ascii.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 04 Jul 2006 07:46:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816961#M269339</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-07-04T07:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: FTP query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816962#M269340</link>
      <description>Are you sure that you don't have that extra blank line or space in the file? Try &lt;BR /&gt;# vis -n &lt;BR /&gt;command to check it.&lt;BR /&gt;&lt;BR /&gt;Andrey</description>
      <pubDate>Tue, 04 Jul 2006 08:02:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816962#M269340</guid>
      <dc:creator>Andrey Tumanov</dc:creator>
      <dc:date>2006-07-04T08:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: FTP query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816963#M269341</link>
      <description>Although I never use the XP FTP client of my PC  at work (only Cygwin OpenSSH) even this one has a "bin" toggle switch.&lt;BR /&gt;At the ftp client's prompt type "?" or "help" to get a list of available commands.&lt;BR /&gt;Type "status" to get your current mode displayed. If it doesn't show binary mode type "binary" (note, most of these commands may be abbreviated from the point of unambiguaty).&lt;BR /&gt;Often I additionaly enable hashmark printing with "hash" to better follow the load.&lt;BR /&gt;While in bin mode there should no attempts being made of "correcting" any ends of line or end of file.&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Jul 2006 08:07:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816963#M269341</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2006-07-04T08:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: FTP query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816964#M269342</link>
      <description>The file is ascii. If I create a simple file like:&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;4&lt;BR /&gt;on HPUX using vi and then ftp it from unix to Windows I get the file plus an extra line after the line with 4 giving a total of 5 lines in Wordpad/Notepad.&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Tue, 04 Jul 2006 08:10:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816964#M269342</guid>
      <dc:creator>Tim O'Connell</dc:creator>
      <dc:date>2006-07-04T08:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: FTP query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816965#M269343</link>
      <description>The problem is assuming that exchanging files between completely unrelated computers will be trouble free. Windows/DOS stores ASCII files as variable length records separated by CR/LF and terminated with CTRL-Z at the end of the file. Unix systems like HP-UX will create files with records delimited by just LF and nothing else. In Unix, the length of the file is known to the filesystem and the FTP program. So using BIN will always fail as the file is transferred in the native format, while ASCII mode will translate according to the rules of the target system.&lt;BR /&gt; &lt;BR /&gt;The extra blank line problem is seen throughout Windows/DOS and is a feature, not a bug (smiley face). This is probably a feature of the ftp server code in the PC (no fix). Any PC program that cannot accomodate the vagaries of variable length and content files needs rewriting.</description>
      <pubDate>Tue, 04 Jul 2006 08:17:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816965#M269343</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-07-04T08:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: FTP query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816966#M269344</link>
      <description>Thanks for the replies. Points assigned.&lt;BR /&gt;&lt;BR /&gt;Bill,&lt;BR /&gt;&lt;BR /&gt;The software is third party so I will write a batch file to remove the last line.&lt;BR /&gt;&lt;BR /&gt;Many Thanks,&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Tue, 04 Jul 2006 09:12:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816966#M269344</guid>
      <dc:creator>Tim O'Connell</dc:creator>
      <dc:date>2006-07-04T09:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: FTP query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816967#M269345</link>
      <description>And here a source for sed for Windows:&lt;BR /&gt; &lt;A href="http://gnuwin32.sourceforge.net/packages/sed.htm" target="_blank"&gt;http://gnuwin32.sourceforge.net/packages/sed.htm&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;WinVi is also a very nice tool -- it actually works:&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://www.winvi.de/en/" target="_blank"&gt;http://www.winvi.de/en/&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Jul 2006 16:08:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816967#M269345</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-07-04T16:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: FTP query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816968#M269346</link>
      <description>Thanks, Bill</description>
      <pubDate>Wed, 05 Jul 2006 02:30:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-query/m-p/3816968#M269346</guid>
      <dc:creator>Tim O'Connell</dc:creator>
      <dc:date>2006-07-05T02:30:39Z</dc:date>
    </item>
  </channel>
</rss>

