<?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: Script help with &amp;quot; &amp;lt;&amp;lt; EOF &amp;quot; errors... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641807#M878885</link>
    <description>There's a trailing EOF in your stop command, but there isn't one in your start command.&lt;BR /&gt;&lt;BR /&gt;blah &amp;lt;&amp;lt; EOF&lt;BR /&gt;blah&lt;BR /&gt;blah&lt;BR /&gt;blah&lt;BR /&gt;EOF  &amp;lt;------ you left this one out on start</description>
    <pubDate>Thu, 10 Jan 2002 01:07:22 GMT</pubDate>
    <dc:creator>Christopher Caldwell</dc:creator>
    <dc:date>2002-01-10T01:07:22Z</dc:date>
    <item>
      <title>Script help with " &lt;&lt; EOF " errors...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641806#M878884</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have written a script to bring up/down oracle databases.  I am getting the following error :  syntax error "&amp;lt;&amp;lt;" unmatched&lt;BR /&gt;&lt;BR /&gt;Here is the script&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;#  THIS SCRIPT WILL BE USED TO STARTUP AND SHUTDOWN THE DATABASES&lt;BR /&gt;#  NOTE:  You must supply a start/stop on command line (ie db start)&lt;BR /&gt;#       - Nitro Microsystems -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ACTION=$1&lt;BR /&gt;DATABASE=`/usr/bin/grep oracle /etc/oratab|grep -v "*"|awk '{FS=":"}{print $1}'`&lt;BR /&gt;ORA_PATH=`/usr/bin/grep oracle /etc/oratab|grep -v "*"|awk '{FS=":"}{print $2}'|&lt;BR /&gt;/usr/bin/head -1`&lt;BR /&gt;SVR=/usr/oracle/product/8.0.5/bin/svrmgrl&lt;BR /&gt;&lt;BR /&gt;# ENSURE THAT AN ACTION HAS BEEN GIVEN - IE START OR STOP&lt;BR /&gt;if [ -z "${ACTION}" ]&lt;BR /&gt;then&lt;BR /&gt;        echo&lt;BR /&gt;        echo "You must supply a start or stop command"&lt;BR /&gt;        echo&lt;BR /&gt;        echo "USAGE :  db.ksh start  or db.ksh stop"&lt;BR /&gt;        echo&lt;BR /&gt;        exit 1                                                         &lt;BR /&gt;&lt;BR /&gt;case $ACTION in&lt;BR /&gt;        'stop')&lt;BR /&gt;                for DB in $DATABASE&lt;BR /&gt;                do&lt;BR /&gt;                        export ORACLE_SID=$DATABASE&lt;BR /&gt;                        export PATH=.:$ORA_PATH/bin:$PATH&lt;BR /&gt;                        $SVR &amp;lt;&amp;lt; EOF&lt;BR /&gt;                        connect internal&lt;BR /&gt;                        shutdown immediate&lt;BR /&gt;                        EOF&lt;BR /&gt;                done&lt;BR /&gt;        ;;&lt;BR /&gt;&lt;BR /&gt;        'start')&lt;BR /&gt;                for DB in $DATABASE&lt;BR /&gt;                do&lt;BR /&gt;                        export ORACLE_SID=$DATABASE&lt;BR /&gt;                        export PATH=.:$ORA_PATH/bin:$PATH&lt;BR /&gt;                        $SVR &amp;lt;&amp;lt; EOF&lt;BR /&gt;                        connect internal&lt;BR /&gt;                        startup               &lt;BR /&gt;                       startup&lt;BR /&gt;                done&lt;BR /&gt;        ;;&lt;BR /&gt;&lt;BR /&gt;             *)&lt;BR /&gt;                echo&lt;BR /&gt;                echo YOUR START/STOP COMMAND WAS INCORRECT...ensure that it is&lt;BR /&gt;                echo in lowercase  IE:  db.ksh start  or db.ksh stop&lt;BR /&gt;                echo&lt;BR /&gt;        ;;&lt;BR /&gt;esac                                          &lt;BR /&gt;&lt;BR /&gt;Not sure why this will not work.  Thanks for the help,&lt;BR /&gt;Sally</description>
      <pubDate>Thu, 10 Jan 2002 01:01:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641806#M878884</guid>
      <dc:creator>Sally  Devine</dc:creator>
      <dc:date>2002-01-10T01:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with " &lt;&lt; EOF " errors...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641807#M878885</link>
      <description>There's a trailing EOF in your stop command, but there isn't one in your start command.&lt;BR /&gt;&lt;BR /&gt;blah &amp;lt;&amp;lt; EOF&lt;BR /&gt;blah&lt;BR /&gt;blah&lt;BR /&gt;blah&lt;BR /&gt;EOF  &amp;lt;------ you left this one out on start</description>
      <pubDate>Thu, 10 Jan 2002 01:07:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641807#M878885</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2002-01-10T01:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with " &lt;&lt; EOF " errors...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641808#M878886</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try adding "EOF" before the 'done'in your start section. The stop section has one but not the start.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;-Michael</description>
      <pubDate>Thu, 10 Jan 2002 01:14:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641808#M878886</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-01-10T01:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with " &lt;&lt; EOF " errors...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641809#M878887</link>
      <description>Sorry, just a bad cut and paste job...it is actually there in the original and is not working.&lt;BR /&gt;&lt;BR /&gt;I just wrote a little test script where I ran:&lt;BR /&gt;&lt;BR /&gt;svrmgrl &amp;gt;&amp;gt; EOF&lt;BR /&gt;show all&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;and everything was fine.  It looks like it doesn't like being in a FOR loop for some reason.&lt;BR /&gt;&lt;BR /&gt;Any more ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks for the help.</description>
      <pubDate>Thu, 10 Jan 2002 01:44:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641809#M878887</guid>
      <dc:creator>Sally  Devine</dc:creator>
      <dc:date>2002-01-10T01:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with " &lt;&lt; EOF " errors...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641810#M878888</link>
      <description>The forums text handler always left justifies text and removes redundant spaces. No matter how you format your script, the here-document terminator (EOF in this case) must start in column 1 in order to be recognized.</description>
      <pubDate>Thu, 10 Jan 2002 02:05:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641810#M878888</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-01-10T02:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with " &lt;&lt; EOF " errors...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641811#M878889</link>
      <description>Hi Sally,&lt;BR /&gt;&lt;BR /&gt;I'm not an oracle person, but in the attached&lt;BR /&gt;link should be something of use.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2c268ffa98a2d5118ff10090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2c268ffa98a2d5118ff10090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;-Michael</description>
      <pubDate>Thu, 10 Jan 2002 02:06:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641811#M878889</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-01-10T02:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with " &lt;&lt; EOF " errors...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641812#M878890</link>
      <description>Sally,&lt;BR /&gt;&lt;BR /&gt;Take a look at this, and possibly other perl solutions:&lt;BR /&gt;&lt;A href="http://www.tux.org/orac-dba/resources.html" target="_blank"&gt;http://www.tux.org/orac-dba/resources.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 10 Jan 2002 02:47:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641812#M878890</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-01-10T02:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with " &lt;&lt; EOF " errors...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641813#M878891</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;In your response, you quoted a test you performed:&lt;BR /&gt;&lt;BR /&gt;svrmgrl &amp;gt;&amp;gt; EOF &lt;BR /&gt;show all &lt;BR /&gt;EOF &lt;BR /&gt;&lt;BR /&gt;Another typo? It should be &amp;lt;&amp;lt; not &amp;gt;&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;If you are using &amp;lt;&amp;lt; correctly and not &amp;gt;&amp;gt;, I agree with Patrick that it is most likely that your EOF is not properly left-aligned in the first column.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Thu, 10 Jan 2002 03:12:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641813#M878891</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-01-10T03:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with " &lt;&lt; EOF " errors...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641814#M878892</link>
      <description>Thank you all very much.  As it turns out &lt;BR /&gt;&lt;BR /&gt;    connect internal&lt;BR /&gt;    startup&lt;BR /&gt;    EOF&lt;BR /&gt;&lt;BR /&gt;all have to be left-aligned.  I never would have figured that out.  &lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Sally - sorry for all the typos!&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jan 2002 03:21:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641814#M878892</guid>
      <dc:creator>Sally  Devine</dc:creator>
      <dc:date>2002-01-10T03:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with " &lt;&lt; EOF " errors...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641815#M878893</link>
      <description>Hi Sally,&lt;BR /&gt;&lt;BR /&gt;$SVR&amp;lt;&lt;EOF&gt;&lt;/EOF&gt;&lt;BR /&gt;means that the input of Oracle Server Manager will be redirected to be from then following text and not from the keyboard, as it is a batch script.&lt;BR /&gt;&lt;BR /&gt;and the end of this input will be notified by the next appearance of the label EOF.&lt;BR /&gt;&lt;BR /&gt;You need :&lt;BR /&gt;&lt;BR /&gt;To close your input text for $SVR&amp;lt;&lt;EOF by="" a="" trailing="" text="" eof="" .=""&gt;&lt;/EOF&gt;&lt;BR /&gt;Greetings.&lt;BR /&gt;&lt;BR /&gt;Magdi</description>
      <pubDate>Thu, 10 Jan 2002 11:39:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641815#M878893</guid>
      <dc:creator>Magdi KAMAL</dc:creator>
      <dc:date>2002-01-10T11:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with " &lt;&lt; EOF " errors...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641816#M878894</link>
      <description>Hello Sally,&lt;BR /&gt;&lt;BR /&gt;the "EOF" *MUST* be left aligned, but if you want the redirected text lines to be indented, you have to prefix the "EOF" mark with a dash:&lt;BR /&gt;&lt;BR /&gt;cat &amp;lt;&amp;lt;-EOF&lt;BR /&gt;________is&lt;BR /&gt;________shown&lt;BR /&gt;________left-aligned&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Since the forums server does not like space, please replace all underscores '-' with spaces ' ' in the above example...&lt;BR /&gt;&lt;BR /&gt;Substitutions still happens within the redirected lines,&lt;BR /&gt;but if you not want that you have to single-quote the mark&lt;BR /&gt;(i.e. "cat &amp;lt;&amp;lt;'EOF'" or even "cat &amp;lt;-'EOF'")...&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Wodisch</description>
      <pubDate>Thu, 10 Jan 2002 12:48:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641816#M878894</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2002-01-10T12:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with " &lt;&lt; EOF " errors...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641817#M878895</link>
      <description>Sally,&lt;BR /&gt;&lt;BR /&gt;FYI&lt;BR /&gt;&lt;BR /&gt;Oracle provides standard scripts for this purpose.  $ORACLE_HOME/bin/dbshut and $ORACLE_HOME/bin/dbstart&lt;BR /&gt;&lt;BR /&gt;In your start section of the script run dbstart, and in the stop section, run dbshut.  The way I look at is, WHY REINVENT THE WHEEL???&lt;BR /&gt;&lt;BR /&gt;Good Luck,&lt;BR /&gt;&lt;BR /&gt;...jcd...</description>
      <pubDate>Thu, 10 Jan 2002 14:27:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641817#M878895</guid>
      <dc:creator>Joseph C. Denman</dc:creator>
      <dc:date>2002-01-10T14:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with " &lt;&lt; EOF " errors...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641818#M878896</link>
      <description>Sally,&lt;BR /&gt;&lt;BR /&gt;Try this example:&lt;BR /&gt;&lt;BR /&gt;echo 'connect internal\nselect * from v$database;\nexit\n' | svrmgrl &amp;gt; /tmp/svrmgrl.out&lt;BR /&gt;&lt;BR /&gt;I have used this in a shell script to determine if an Oracle instance is in archive log mode.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Joseph.</description>
      <pubDate>Thu, 10 Jan 2002 15:06:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-quot-lt-lt-eof-quot-errors/m-p/2641818#M878896</guid>
      <dc:creator>Joseph A Benaiah_1</dc:creator>
      <dc:date>2002-01-10T15:06:52Z</dc:date>
    </item>
  </channel>
</rss>

