<?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 return values from within shell scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-return-values-from-within-shell-scripts/m-p/2434374#M4359</link>
    <description>You could write a perl or C program but redirecting to a log file would be easiest and give you all info concerning the ftp process that took place. Of course, what is captured in the log file depends on what you are redirecting.</description>
    <pubDate>Wed, 02 Aug 2000 19:16:03 GMT</pubDate>
    <dc:creator>Rick Garland</dc:creator>
    <dc:date>2000-08-02T19:16:03Z</dc:date>
    <item>
      <title>ftp return values from within shell scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-return-values-from-within-shell-scripts/m-p/2434372#M4357</link>
      <description>Is there a way to retrieve the return code from ftp from within a korn shell?</description>
      <pubDate>Wed, 02 Aug 2000 19:08:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-return-values-from-within-shell-scripts/m-p/2434372#M4357</guid>
      <dc:creator>Rick Taylor</dc:creator>
      <dc:date>2000-08-02T19:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: ftp return values from within shell scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-return-values-from-within-shell-scripts/m-p/2434373#M4358</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;return code is difficult.&lt;BR /&gt;What about logging the error output of the ftp command ?&lt;BR /&gt;Just redirect with 2&amp;gt;/tmp/ftperr.log&lt;BR /&gt;an look then for any contents in it&lt;BR /&gt;(&lt;BR /&gt;if [ ! -s /tmp/ftperr ]; then&lt;BR /&gt;#your error actions&lt;BR /&gt;fi&lt;BR /&gt;).&lt;BR /&gt;If it is empty the ftp should be successfully.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Andrew</description>
      <pubDate>Wed, 02 Aug 2000 19:08:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-return-values-from-within-shell-scripts/m-p/2434373#M4358</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-08-02T19:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: ftp return values from within shell scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-return-values-from-within-shell-scripts/m-p/2434374#M4359</link>
      <description>You could write a perl or C program but redirecting to a log file would be easiest and give you all info concerning the ftp process that took place. Of course, what is captured in the log file depends on what you are redirecting.</description>
      <pubDate>Wed, 02 Aug 2000 19:16:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-return-values-from-within-shell-scripts/m-p/2434374#M4359</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-02T19:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: ftp return values from within shell scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-return-values-from-within-shell-scripts/m-p/2434375#M4360</link>
      <description>Rick:&lt;BR /&gt;&lt;BR /&gt;My experience is the same as Andreas &amp;amp; Rick.&lt;BR /&gt;&lt;BR /&gt;I run my ftp scripts with the verbose option (-v) and tee or redirect output to a logfile.  I also like to use the 'hash' mark to record progress.&lt;BR /&gt;&lt;BR /&gt;The intermediate and final replys of the ftpd are recorded as 3-digit values (see: man ftpd) in the redirected output log, along with an textual translation.  You could awk to isolate key values like "226" which denotes a successful transfer.&lt;BR /&gt;&lt;BR /&gt;Depending on the server to which you connect (UNIX, NT, etc.) the text associated with the value may differ.  For instance, #226 is "Transfer complete" as well as "Transfer finished successfully.".&lt;BR /&gt;&lt;BR /&gt;If you are doing 'gets', the presence of a file can be used to signal a "successful" ftp.&lt;BR /&gt;&lt;BR /&gt;Needless to say, none of this is direct.&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 02 Aug 2000 19:46:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-return-values-from-within-shell-scripts/m-p/2434375#M4360</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-08-02T19:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: ftp return values from within shell scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-return-values-from-within-shell-scripts/m-p/2434376#M4361</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I've done somthing like that.&lt;BR /&gt;&lt;BR /&gt;The script is in attachment.&lt;BR /&gt;&lt;BR /&gt;It is part of a bigger script, but the  stuff you want to do is in there.&lt;BR /&gt;&lt;BR /&gt;Bye,&lt;BR /&gt;Rik</description>
      <pubDate>Wed, 02 Aug 2000 19:53:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-return-values-from-within-shell-scripts/m-p/2434376#M4361</guid>
      <dc:creator>RikTytgat</dc:creator>
      <dc:date>2000-08-02T19:53:24Z</dc:date>
    </item>
  </channel>
</rss>

