<?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 in shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2847024#M825422</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;The 'EndFTP' must not have leading spaces or tabs.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Mon, 18 Nov 2002 16:27:41 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2002-11-18T16:27:41Z</dc:date>
    <item>
      <title>ftp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2847022#M825420</link>
      <description>I am trying to use ftp in a shell script and was getting the ftp prompt (as if it were waiting for a command) after the initial connection to the remote server.  I looked at some of the existing forums:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0xc7b7d5fab40ed6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0xc7b7d5fab40ed6118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc88106295e00d6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc88106295e00d6118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;that gave me some good examples.  Here is my code:&lt;BR /&gt; &lt;BR /&gt;   ftp -nidv ${FTPIP} &amp;lt;&lt;ENDFTP&gt;&lt;/ENDFTP&gt;   user ${FTPUSER} ${FTPAUTH}&lt;BR /&gt;   cd ${REMOTEDIR}&lt;BR /&gt;   lcd ${LOCDIR}&lt;BR /&gt;   ascii&lt;BR /&gt;   ${FTPCMD1} ${FTPFILEA1} ${FTPFILEB1}&lt;BR /&gt;   close&lt;BR /&gt;   bye&lt;BR /&gt;   EndFTP&lt;BR /&gt;&lt;BR /&gt;Without the &amp;lt;&lt;ENDFTP&gt;&lt;/ENDFTP&gt;&lt;BR /&gt;ftp_exec.ksh[14]: Syntax error at line 16 : `&amp;lt;&amp;lt;' is&lt;BR /&gt; not matched.&lt;BR /&gt;&lt;BR /&gt;I'm trying to work my way into Unix from a IBM Mainframe envrionment (or Legacy as it is referenced!!) Any help is appreciated... Thanks!&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Nov 2002 16:21:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2847022#M825420</guid>
      <dc:creator>Kevin Dunn</dc:creator>
      <dc:date>2002-11-18T16:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: ftp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2847023#M825421</link>
      <description>I can't quite tell from your posting, but make sure that there are NO spaces between the two &amp;lt; symbols in your code.  They must be together.&lt;BR /&gt;&lt;BR /&gt;ftp -nidb 192.192.192.192 &amp;lt;&amp;lt; EOF&lt;BR /&gt;command&lt;BR /&gt;command&lt;BR /&gt;command&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Also make sure the your ending EndFTP is not indented at all.  It MUST start at column 1 on the line.</description>
      <pubDate>Mon, 18 Nov 2002 16:23:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2847023#M825421</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-11-18T16:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: ftp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2847024#M825422</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;The 'EndFTP' must not have leading spaces or tabs.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 18 Nov 2002 16:27:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2847024#M825422</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-11-18T16:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: ftp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2847025#M825423</link>
      <description>EndFTP can't have any trailing blanks or other characters either...&lt;BR /&gt;&lt;BR /&gt;Tom</description>
      <pubDate>Mon, 18 Nov 2002 16:31:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2847025#M825423</guid>
      <dc:creator>Tom Maloy</dc:creator>
      <dc:date>2002-11-18T16:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: ftp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2847026#M825424</link>
      <description>Thanks everyone!!!! &lt;BR /&gt;&lt;BR /&gt;All get 10 points (see us mainframe guys aren't so bad!) :)  &lt;BR /&gt;&lt;BR /&gt;The code was embedded in a function and there was a space in front of the EndFTP. I removed the space and it works!!&lt;BR /&gt;&lt;BR /&gt;Thanks again!</description>
      <pubDate>Mon, 18 Nov 2002 16:51:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2847026#M825424</guid>
      <dc:creator>Kevin Dunn</dc:creator>
      <dc:date>2002-11-18T16:51:40Z</dc:date>
    </item>
  </channel>
</rss>

