<?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 Program advice in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247930#M470577</link>
    <description>Thx all for your help and advice. We dropped the idea of using the third party FTP program.&lt;BR /&gt;&lt;BR /&gt;Thx,</description>
    <pubDate>Thu, 22 Jul 2010 17:24:04 GMT</pubDate>
    <dc:creator>djoshi</dc:creator>
    <dc:date>2010-07-22T17:24:04Z</dc:date>
    <item>
      <title>FTP Program advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247919#M470566</link>
      <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;I want any FTP program to transfer files between two HP-UNIX 10.02 machine and which tells us the reason if the FTP fails?&lt;BR /&gt;&lt;BR /&gt;Can any one advice me on this.</description>
      <pubDate>Thu, 15 Jul 2010 18:23:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247919#M470566</guid>
      <dc:creator>djoshi</dc:creator>
      <dc:date>2010-07-15T18:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Program advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247920#M470567</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I want any FTP program...&lt;BR /&gt;&lt;BR /&gt;What does that mean, a script to leverage FTP?&lt;BR /&gt;&lt;BR /&gt;In a shell, you might capture an FTP session's information with verbose logging:&lt;BR /&gt;&lt;BR /&gt;# ftp -in -v &amp;gt;&amp;gt; /var/tmp/ftplog.$$ 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;You could then parse the log looking for specific strings of text and/or the specific replies made by the FTP daemon.  Each reply begins with a three-digit value.  Look at the manpages for 'ftpd(1M)' for how to interpret these and/or their textual description.  Be advised that the actual text may vary among different server implementations.&lt;BR /&gt;&lt;BR /&gt;In Perl, you could use the 'Net::FTP' module.  This allows straightforward logic, like:&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;login() or die "..."&lt;BR /&gt;&lt;BR /&gt;...and:&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;put($localf, $remotef) or die "..."&lt;BR /&gt;&lt;BR /&gt;...which gives you the ability to report whatever and however you like.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Jul 2010 18:54:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247920#M470567</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-07-15T18:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Program advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247921#M470568</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;You may wish to try snarf.&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Networking/FTP/snarf-7.0/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Networking/FTP/snarf-7.0/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It may be a new version, if so search the parent site for snarf&lt;BR /&gt;&lt;BR /&gt;Or a script.&lt;BR /&gt;&lt;BR /&gt;ftp -i -n -v &amp;lt;&amp;lt;-ftpend&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;open maquina_remota&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;user Nome_do_Usuario password&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;binary&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cd /diretorio_remoto&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;lcd /diretorio_local&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;get arquivo_remoto&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;put arquivo_local&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;quit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ftpend&lt;BR /&gt;&lt;BR /&gt;You will get diagnostics. No promise that it will be actually useful information. It is after all Unix. Beats a crashing windows gui.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 15 Jul 2010 19:01:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247921#M470568</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-07-15T19:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Program advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247922#M470569</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] HP-UNIX 10.02 [...]&lt;BR /&gt;&lt;BR /&gt;HP-UX 10.20?&lt;BR /&gt;&lt;BR /&gt;      uname -a&lt;BR /&gt;&lt;BR /&gt;Where did you find an FTP program which does&lt;BR /&gt;_not_ tell you the reason if the FTP fails?&lt;BR /&gt;What, exactly are you trying to do?</description>
      <pubDate>Thu, 15 Jul 2010 19:56:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247922#M470569</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-07-15T19:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Program advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247923#M470570</link>
      <description>Thx for suggestion.&lt;BR /&gt;&lt;BR /&gt;can you please advise me how about ncftpput? Is anybody use this ftp program? if yes, Please advise me for HP-UNIX?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.ncftp.com/" target="_blank"&gt;http://www.ncftp.com/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thx,</description>
      <pubDate>Mon, 19 Jul 2010 11:16:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247923#M470570</guid>
      <dc:creator>djoshi</dc:creator>
      <dc:date>2010-07-19T11:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Program advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247924#M470571</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;I've used the client, a few years ago.&lt;BR /&gt;&lt;BR /&gt;I did not find it very inspiring.&lt;BR /&gt;&lt;BR /&gt;If you are looking for a client, see snarf or if filezilla can be compiled on your Unix box.&lt;BR /&gt;&lt;BR /&gt;As far as ftp server goes, whenever possible I shut it down and don't use it all all. Clear text authentication scares me.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 19 Jul 2010 12:57:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247924#M470571</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-07-19T12:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Program advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247925#M470572</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] can you please advise me [...]&lt;BR /&gt;&lt;BR /&gt;You might get better advice if you explained&lt;BR /&gt;exactly what you wish to do.&lt;BR /&gt;&lt;BR /&gt;And before asking here about some third-party&lt;BR /&gt;product, you might try to explain why the&lt;BR /&gt;built-in software is not good enough.</description>
      <pubDate>Mon, 19 Jul 2010 15:25:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247925#M470572</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-07-19T15:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Program advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247926#M470573</link>
      <description>Below is what I am trying to do.&lt;BR /&gt;&lt;BR /&gt;We already have ftp program to transfer files and we are using default ftp for this.&lt;BR /&gt;&lt;BR /&gt;Sometimes the ftp program is failing and we don't know the reason of fail. That's why we need a program which tells us the reason why the ftp is failing. Is ftp return any exit codes of fail?&lt;BR /&gt;&lt;BR /&gt;Please advice me how to accomplish my requiremet.&lt;BR /&gt; &lt;BR /&gt;Thx,&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2010 19:47:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247926#M470573</guid>
      <dc:creator>djoshi</dc:creator>
      <dc:date>2010-07-19T19:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Program advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247927#M470574</link>
      <description>You can use:&lt;BR /&gt;&lt;BR /&gt;ftp -inv -T 12 $REMOTESITE &amp;lt; ftp_info | grep 226 &lt;BR /&gt;&lt;BR /&gt;to check the error.</description>
      <pubDate>Mon, 19 Jul 2010 21:09:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247927#M470574</guid>
      <dc:creator>Tingli</dc:creator>
      <dc:date>2010-07-19T21:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Program advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247928#M470575</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Sometimes the ftp program is failing and we&lt;BR /&gt;&amp;gt; don't know the reason of fail.&lt;BR /&gt;&lt;BR /&gt;What do you do?  What happens when it fails?&lt;BR /&gt;"is failing" is not a useful problem&lt;BR /&gt;description.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Is ftp return any exit codes of fail?&lt;BR /&gt;&lt;BR /&gt;Most programs emit error messages when they&lt;BR /&gt;fail, or exit with some failure status.  What&lt;BR /&gt;does yours do?  Are you looking at what it&lt;BR /&gt;does?  What makes you think that some other&lt;BR /&gt;program will tell you more than this one&lt;BR /&gt;does?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] | grep 226 &lt;BR /&gt;&lt;BR /&gt;What happens if you get some other error&lt;BR /&gt;code?</description>
      <pubDate>Mon, 19 Jul 2010 22:15:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247928#M470575</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-07-19T22:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Program advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247929#M470576</link>
      <description>&amp;gt; tells us the reason if the FTP fails...&lt;BR /&gt; &lt;BR /&gt;As mentioned, ftp will tell you exactly why it failed. The problem is that there are dozens of reasons for the failure. &lt;BR /&gt; &lt;BR /&gt;Start with the initial connection:&lt;BR /&gt;- Is the hostname or IP address valid?&lt;BR /&gt;- Can you reach the host/IPaddr (ie, ping)?&lt;BR /&gt;- Did the login and password work OK?&lt;BR /&gt; &lt;BR /&gt;Now the endless tasks that you can perform:&lt;BR /&gt;- lcd to the desired local directory OK?&lt;BR /&gt;- cd to the desired remote directory OK?&lt;BR /&gt;- dir OK? &lt;BR /&gt;Is the the expected location? Are there permission problems or misspelled paths?&lt;BR /&gt; &lt;BR /&gt;And finally the transfer:&lt;BR /&gt;- get or put succeeded?&lt;BR /&gt;- mget or mput succeeded?&lt;BR /&gt;- For mput/mget, did the expected number of files get transferred?&lt;BR /&gt;&lt;BR /&gt;And finishing:&lt;BR /&gt;- set permissions (if allowed, site and quote commands)&lt;BR /&gt;- verify file sizes&lt;BR /&gt; &lt;BR /&gt;I suspect that you want just a simple command with a 0 or 1 return code. But as you can see, there are many, many reasons for failures. So once you know there's a failure, the first question should be what went wrong? And that requires extensive scripting to test the text from ftp and extract the error conditions.&lt;BR /&gt; &lt;BR /&gt;There is a scripting tool called expect that (after a steep learning curve), could be used to implement a complete solution. I have described a completely general scenario above -- you can create custom scripts for specific tasks, but you'll have to assume that every step will fail and test for that condition.</description>
      <pubDate>Tue, 20 Jul 2010 00:10:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247929#M470576</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-07-20T00:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Program advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247930#M470577</link>
      <description>Thx all for your help and advice. We dropped the idea of using the third party FTP program.&lt;BR /&gt;&lt;BR /&gt;Thx,</description>
      <pubDate>Thu, 22 Jul 2010 17:24:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-program-advice/m-p/5247930#M470577</guid>
      <dc:creator>djoshi</dc:creator>
      <dc:date>2010-07-22T17:24:04Z</dc:date>
    </item>
  </channel>
</rss>

