<?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: Batch scripting help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-scripting-help/m-p/4554704#M370968</link>
    <description>very broad question with multiple possible answers....&lt;BR /&gt;&lt;BR /&gt;one way, if netrc files are setup so you don't need id / password&lt;BR /&gt;&lt;BR /&gt;ftp *othermachine* &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;cd /somedirectory&lt;BR /&gt;get somefile&lt;BR /&gt;bye&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 23 Dec 2009 13:29:23 GMT</pubDate>
    <dc:creator>OldSchool</dc:creator>
    <dc:date>2009-12-23T13:29:23Z</dc:date>
    <item>
      <title>Batch scripting help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-scripting-help/m-p/4554703#M370967</link>
      <description>How to write a batch script in order to ftp the files from remote machine.</description>
      <pubDate>Wed, 23 Dec 2009 13:10:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/batch-scripting-help/m-p/4554703#M370967</guid>
      <dc:creator>krackjack</dc:creator>
      <dc:date>2009-12-23T13:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Batch scripting help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-scripting-help/m-p/4554704#M370968</link>
      <description>very broad question with multiple possible answers....&lt;BR /&gt;&lt;BR /&gt;one way, if netrc files are setup so you don't need id / password&lt;BR /&gt;&lt;BR /&gt;ftp *othermachine* &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;cd /somedirectory&lt;BR /&gt;get somefile&lt;BR /&gt;bye&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Dec 2009 13:29:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/batch-scripting-help/m-p/4554704#M370968</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-12-23T13:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Batch scripting help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-scripting-help/m-p/4554705#M370969</link>
      <description>Or if you didn't set up .netrc file:&lt;BR /&gt;&lt;BR /&gt;ftp &lt;REMOTE-HOST or="" ip=""&gt; &amp;lt;&amp;lt;-EOF&lt;BR /&gt;user &lt;USER&gt; &lt;PASSWD&gt;&lt;BR /&gt;ls&lt;BR /&gt;get &lt;FILE you="" want=""&gt;&lt;BR /&gt;bye&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Or....just type "auto ftp" or some variation of this in Search option above.  Dozens of scripts for this have been posted here.&lt;BR /&gt;&lt;BR /&gt;Rgrds,&lt;BR /&gt;Rita&lt;BR /&gt;&lt;/FILE&gt;&lt;/PASSWD&gt;&lt;/USER&gt;&lt;/REMOTE-HOST&gt;</description>
      <pubDate>Wed, 23 Dec 2009 13:33:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/batch-scripting-help/m-p/4554705#M370969</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2009-12-23T13:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Batch scripting help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-scripting-help/m-p/4554706#M370970</link>
      <description>&amp;gt;Rita: ftp &lt;REMOTE-HOST or="" ip=""&gt; &amp;lt;&amp;lt;-EOF&lt;BR /&gt;&amp;gt;user &lt;USER&gt; &lt;PASSWD&gt;&lt;BR /&gt;&lt;BR /&gt;If you are going to use this form, you need the -n option.&lt;/PASSWD&gt;&lt;/USER&gt;&lt;/REMOTE-HOST&gt;</description>
      <pubDate>Wed, 23 Dec 2009 14:04:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/batch-scripting-help/m-p/4554706#M370970</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-23T14:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Batch scripting help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/batch-scripting-help/m-p/4554707#M370971</link>
      <description>also, you'll need to log the ftp results and parse them to determine success or failure, as you can't check for $0 being OK (it will be 0 even if the get fails...because the "bye" worked...)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ftp *othermachine* &amp;gt; /somepath/myftp.log &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;cd /somedirectory&lt;BR /&gt;get somefile&lt;BR /&gt;bye&lt;BR /&gt;EOF</description>
      <pubDate>Wed, 23 Dec 2009 14:06:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/batch-scripting-help/m-p/4554707#M370971</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-12-23T14:06:22Z</dc:date>
    </item>
  </channel>
</rss>

