<?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 script ! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3336553#M712445</link>
    <description>Hai,&lt;BR /&gt;&lt;BR /&gt; Shell will prompt  if use the &amp;lt;&lt;EOF. change="" it="" to="" as=""&gt;&lt;/EOF.&gt;&lt;BR /&gt; A good sample script is avaible at &lt;A href="http://www.aplawrence.com/SCOFAQ/FAQ_scotec6autoftp.html" target="_blank"&gt;http://www.aplawrence.com/SCOFAQ/FAQ_scotec6autoftp.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 20 Jul 2004 13:35:37 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2004-07-20T13:35:37Z</dc:date>
    <item>
      <title>ftp script !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3336550#M712442</link>
      <description>Hi !&lt;BR /&gt;&lt;BR /&gt;I'm testing the next ftp script:&lt;BR /&gt;&lt;BR /&gt;for x in ` cat /sort/LOGS_CRONTAB/logs_home/logs_opers `&lt;BR /&gt;  do&lt;BR /&gt;   cd /&lt;BR /&gt;   cd /sort/LOGS_CRONTAB/logs_home/depot_logs/$x/July04&lt;BR /&gt;   ftp -i -n 130.10.17.18 &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;   user cencom1 cencom1&lt;BR /&gt;   cd s_inb_01/$x/Julio04&lt;BR /&gt;   mput *&lt;BR /&gt;   EOF&lt;BR /&gt;  done&lt;BR /&gt;echo Transfer succesfull | mailx -s "Transfer OK" support@banamex.com&lt;BR /&gt;&lt;BR /&gt;When i execute this shell script, i receive the next message: &lt;BR /&gt;&lt;BR /&gt;# ftp_test&lt;BR /&gt;ftp_test: Syntax error at line 5 : `&amp;lt;&amp;lt;' is not matched.&lt;BR /&gt;&lt;BR /&gt;Is very strange because if i write line by line in the command prompt. The script runs good.&lt;BR /&gt;&lt;BR /&gt;Somebody have an idea about this error ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank's in advance !</description>
      <pubDate>Tue, 20 Jul 2004 12:52:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3336550#M712442</guid>
      <dc:creator>Ivan Azuara</dc:creator>
      <dc:date>2004-07-20T12:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3336551#M712443</link>
      <description>All I can do is give you working code which will look alot like what you have.&lt;BR /&gt;&lt;BR /&gt;ftp -nv ${SERVER} &amp;lt;&amp;lt; FTPEOF &amp;gt; /tmp/temp_log.$$&lt;BR /&gt;user ${USERNAME} ${PASSWORD}&lt;BR /&gt;#Get file&lt;BR /&gt;get $1&lt;BR /&gt;quit&lt;BR /&gt;FTPEOF&lt;BR /&gt;&lt;BR /&gt;Put this in the do/done loop and it should work.&lt;BR /&gt;&lt;BR /&gt;mput versus get should not make a difference.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 20 Jul 2004 13:05:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3336551#M712443</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-07-20T13:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3336552#M712444</link>
      <description>Make sure your don't have spaces or tabs in the lines between &amp;lt;</description>
      <pubDate>Tue, 20 Jul 2004 13:06:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3336552#M712444</guid>
      <dc:creator>john kingsley</dc:creator>
      <dc:date>2004-07-20T13:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3336553#M712445</link>
      <description>Hai,&lt;BR /&gt;&lt;BR /&gt; Shell will prompt  if use the &amp;lt;&lt;EOF. change="" it="" to="" as=""&gt;&lt;/EOF.&gt;&lt;BR /&gt; A good sample script is avaible at &lt;A href="http://www.aplawrence.com/SCOFAQ/FAQ_scotec6autoftp.html" target="_blank"&gt;http://www.aplawrence.com/SCOFAQ/FAQ_scotec6autoftp.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Jul 2004 13:35:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3336553#M712445</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-07-20T13:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3336554#M712446</link>
      <description>That script should work if you are in Posix or Korn shell.  What is the default shell of the account you are running this from?&lt;BR /&gt;&lt;BR /&gt;Dan</description>
      <pubDate>Tue, 20 Jul 2004 14:49:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3336554#M712446</guid>
      <dc:creator>Dan Martin_1</dc:creator>
      <dc:date>2004-07-20T14:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3336555#M712447</link>
      <description>Hi !&lt;BR /&gt;&lt;BR /&gt;I probed yours suggestions, but any works (the sintax error message doesnÂ´t disappearing). I use an other form to make the ftp connection, and works fine:&lt;BR /&gt;&lt;BR /&gt;(echo "open 130.10.17.18&lt;BR /&gt;    user $user $password&lt;BR /&gt;    cd s_inb_01/$x/July04&lt;BR /&gt;    mput *&lt;BR /&gt;    close "&lt;BR /&gt;   ) | ftp -i -n&lt;BR /&gt;&lt;BR /&gt;Best Regards</description>
      <pubDate>Wed, 21 Jul 2004 11:28:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3336555#M712447</guid>
      <dc:creator>Ivan Azuara</dc:creator>
      <dc:date>2004-07-21T11:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3336556#M712448</link>
      <description>Hai,&lt;BR /&gt;&lt;BR /&gt; The problem is only because of -EOF. Try to use the following script as,&lt;BR /&gt;&lt;BR /&gt;------- ftp.ksh ---------&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;set -x&lt;BR /&gt;&lt;BR /&gt;for x in `cat /sort/LOGS_CRONTAB/logs_home/logs_opers`&lt;BR /&gt;do&lt;BR /&gt;ftp -i -n 130.10.17.18 &amp;lt;&amp;lt;-EOF 2&amp;gt;/dev/null&lt;BR /&gt; user cencom1 cencom1&lt;BR /&gt; lcd sort/LOGS_CRONTAB/logs_home/depot_logs/$x/July04&lt;BR /&gt; cd s_inb_01/$x/Julio04&lt;BR /&gt; mput *&lt;BR /&gt; bye&lt;BR /&gt;EOF&lt;BR /&gt;done&lt;BR /&gt;[[ $? -eq 0 ]] &amp;amp;&amp;amp; echo Transfer succesfull | mailx -s "Transfer OK" support@banamex.com&lt;BR /&gt;&lt;BR /&gt;#normal return&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;-------------------------------&lt;BR /&gt;&lt;BR /&gt;Execute it. It will surely work.</description>
      <pubDate>Wed, 21 Jul 2004 13:32:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3336556#M712448</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-07-21T13:32:02Z</dc:date>
    </item>
  </channel>
</rss>

