<?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 Scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-scripts/m-p/2481348#M798803</link>
    <description>there have been quite a few questions in the past in regards to automating ftp.  A good starting point would be to search the forums for previous answers.</description>
    <pubDate>Wed, 10 Jan 2001 16:40:58 GMT</pubDate>
    <dc:creator>Curtis Larson</dc:creator>
    <dc:date>2001-01-10T16:40:58Z</dc:date>
    <item>
      <title>FTP Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-scripts/m-p/2481347#M798802</link>
      <description>I am trying to script a simple FTP session and cannot find any sample scripts out there specific to HP-UX. I've got the login automated in my .netrc file but when I try to pipe my put via &amp;lt;&amp;lt; EOF, I get "?Invalid command" and only when I issue a bye does it return to the rest of the script which is basically switching to ascii transfer type and then my put. I know, really simple but I can't get it to work. Any suggestions other than find a new field to work in ;&amp;gt; would be appreciated. Thanks - JD</description>
      <pubDate>Wed, 10 Jan 2001 16:30:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-scripts/m-p/2481347#M798802</guid>
      <dc:creator>John Donaldson</dc:creator>
      <dc:date>2001-01-10T16:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-scripts/m-p/2481348#M798803</link>
      <description>there have been quite a few questions in the past in regards to automating ftp.  A good starting point would be to search the forums for previous answers.</description>
      <pubDate>Wed, 10 Jan 2001 16:40:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-scripts/m-p/2481348#M798803</guid>
      <dc:creator>Curtis Larson</dc:creator>
      <dc:date>2001-01-10T16:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-scripts/m-p/2481349#M798804</link>
      <description>Here is another way to do it:&lt;BR /&gt;&lt;BR /&gt;The following can be in your script that does the automatic ftp.  You can take out the redirection to $LOGFILE, that just gives you a log of what is occurring.  It is nice for debugging though.  The '$ eft' executes the eft macro that is defined in the .netrc file.  The .netrc file is included below.&lt;BR /&gt;&lt;BR /&gt;ftp -i -v 1xxx.xxx.xxx.xxx &amp;gt;&amp;gt; $LOGFILE 2&amp;gt;&amp;amp;1 &amp;lt;&amp;lt; ENDFTP&lt;BR /&gt;$ eft&lt;BR /&gt;ENDFTP&lt;BR /&gt;&lt;BR /&gt;***************&lt;BR /&gt;contents of .netrc file&lt;BR /&gt;*****************&lt;BR /&gt;machine xxx.xxx.xxx.xxx login username password user_password&lt;BR /&gt;macdef eft&lt;BR /&gt;binary&lt;BR /&gt;mput filenames&lt;BR /&gt;put filename&lt;BR /&gt;quit&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jan 2001 17:03:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-scripts/m-p/2481349#M798804</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-01-10T17:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-scripts/m-p/2481350#M798805</link>
      <description>John:&lt;BR /&gt;&lt;BR /&gt;Take a look at this thread and the threads it references for some different ways to create FTP scripts:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x82dff841489fd4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x82dff841489fd4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 10 Jan 2001 17:06:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-scripts/m-p/2481350#M798805</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-01-10T17:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-scripts/m-p/2481351#M798806</link>
      <description>Thanks to all for the help. - JD</description>
      <pubDate>Wed, 10 Jan 2001 17:30:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-scripts/m-p/2481351#M798806</guid>
      <dc:creator>John Donaldson</dc:creator>
      <dc:date>2001-01-10T17:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-scripts/m-p/2481352#M798807</link>
      <description>Hello John,&lt;BR /&gt;&lt;BR /&gt;why do all make it so difficult? Inside ".netrc" is exactly&lt;BR /&gt;one macro that will be executed automagically, and its&lt;BR /&gt;name is "init".&lt;BR /&gt;Try a ".netrc" like&lt;BR /&gt;&lt;BR /&gt;machine MMM login uuu password PPP macdef init&lt;BR /&gt;cd /foreign-dir&lt;BR /&gt;lcd /local-dir&lt;BR /&gt;bin&lt;BR /&gt;prompt&lt;BR /&gt;mget *&lt;BR /&gt;quit&lt;BR /&gt;&lt;BR /&gt;It MUST end with an empty line (all macros have to).&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;   Wodisch</description>
      <pubDate>Thu, 11 Jan 2001 22:00:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-scripts/m-p/2481352#M798807</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-01-11T22:00:32Z</dc:date>
    </item>
  </channel>
</rss>

