<?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: scripting question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2628780#M40545</link>
    <description>Hi Asad:&lt;BR /&gt;&lt;BR /&gt;Actually, it should work. The shell should process everything up to the 'EOF' as standard input for you svrmgrl command. The exit should thus refer to svrmgrl rather than an exit statement for the shell. This should have worked and your echo should have worked as expected. By the way, there is nothing special about 'EOF' you could have used 'end_of_commands', '!EOF!', or 'I_am_finished' as long as you specify it EXACTLY the same in both plasces. The most common mistake is to place whitespace before your markers in one place but not the other.&lt;BR /&gt;' EOF' is not the same as 'EOF'.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay</description>
    <pubDate>Mon, 10 Dec 2001 18:50:06 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2001-12-10T18:50:06Z</dc:date>
    <item>
      <title>scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2628776#M40541</link>
      <description>I have these lines as part of a script:&lt;BR /&gt;svrmgrl &amp;gt;/dev/null &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;connect internal&lt;BR /&gt;shutdown immediate&lt;BR /&gt;exit&lt;BR /&gt;EOF&lt;BR /&gt;echo "shutdown Complete"&lt;BR /&gt;&lt;BR /&gt;The last line does not execute.  How EOF is being used.  Oracle is being shutdown.&lt;BR /&gt;Thanks for help&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Dec 2001 18:30:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2628776#M40541</guid>
      <dc:creator>Asad Malik</dc:creator>
      <dc:date>2001-12-10T18:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2628777#M40542</link>
      <description>hey,&lt;BR /&gt;&lt;BR /&gt;put echo "shutdown complete" before exit command. EOF stands for the End Of File&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Mon, 10 Dec 2001 18:35:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2628777#M40542</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2001-12-10T18:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2628778#M40543</link>
      <description>Hi Asad,&lt;BR /&gt;&lt;BR /&gt;try this,&lt;BR /&gt;&lt;BR /&gt;svrmgrl &amp;gt;/dev/null &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;connect internal &lt;BR /&gt;shutdown immediate &lt;BR /&gt;exit &lt;BR /&gt;echo "shutdown Complete" &lt;BR /&gt;EOF &lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Dec 2001 18:40:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2628778#M40543</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-12-10T18:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2628779#M40544</link>
      <description>The EOF is the marker for the shell.  The &amp;lt;&amp;lt; tells the shell to use the following lines until the marker is reached as input for the command "srvmgrl", so the EOF marks where that input ends.  It does not do anything nor will it display anything.&lt;BR /&gt;&lt;BR /&gt;The other item you may want to check is that the output is being routed to /dev/null.  You may want to send it to a file instead. Also, if this is being run from cron, any errors this process generates will be routed to e-mail, so you may want to consider logging standard error to a file as well.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;mark</description>
      <pubDate>Mon, 10 Dec 2001 18:41:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2628779#M40544</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2001-12-10T18:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2628780#M40545</link>
      <description>Hi Asad:&lt;BR /&gt;&lt;BR /&gt;Actually, it should work. The shell should process everything up to the 'EOF' as standard input for you svrmgrl command. The exit should thus refer to svrmgrl rather than an exit statement for the shell. This should have worked and your echo should have worked as expected. By the way, there is nothing special about 'EOF' you could have used 'end_of_commands', '!EOF!', or 'I_am_finished' as long as you specify it EXACTLY the same in both plasces. The most common mistake is to place whitespace before your markers in one place but not the other.&lt;BR /&gt;' EOF' is not the same as 'EOF'.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay</description>
      <pubDate>Mon, 10 Dec 2001 18:50:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2628780#M40545</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-12-10T18:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2628781#M40546</link>
      <description>HI&lt;BR /&gt;I used Sanjay's and Shiju's case and created this&lt;BR /&gt;echo start &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;echo one&lt;BR /&gt;echo two&lt;BR /&gt;echo three&lt;BR /&gt;EOF&lt;BR /&gt;echo go&lt;BR /&gt;&lt;BR /&gt;I get output as &lt;BR /&gt;start &lt;BR /&gt;go&lt;BR /&gt;&lt;BR /&gt;echo one&lt;BR /&gt;echo two&lt;BR /&gt;are not executed.&lt;BR /&gt;&lt;BR /&gt;Clay&lt;BR /&gt;That is what i think that the final echo command should have worked.  where is the mistake</description>
      <pubDate>Mon, 10 Dec 2001 19:11:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2628781#M40546</guid>
      <dc:creator>Asad Malik</dc:creator>
      <dc:date>2001-12-10T19:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2628782#M40547</link>
      <description>Hi again:&lt;BR /&gt;&lt;BR /&gt;echo start &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;echo one &lt;BR /&gt;echo two &lt;BR /&gt;echo three &lt;BR /&gt;EOF &lt;BR /&gt;echo go &lt;BR /&gt;&lt;BR /&gt;I would only expect you to see 'start' and 'go' in this case. Your 'here docs' is say use everything up to EOF as stdin for the command echo start. But since, echo ignores stdin only the ARGUMENT start is processed. The shell returns after the EOF and you execute the echo go. This is working just as you would expect. Again, there is nothing wrong with your svrmgrl script unless you are missing whitespace that does not post very well. Look for leading spaces or tabs - that will clobber you 'here docs' everytime.&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Dec 2001 19:19:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2628782#M40547</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-12-10T19:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2628783#M40548</link>
      <description>Hi&lt;BR /&gt;Clay, there was an additional tab at the end of EOF.&lt;BR /&gt;Issue is resolved now.  Thanks for help Guys</description>
      <pubDate>Tue, 11 Dec 2001 14:17:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2628783#M40548</guid>
      <dc:creator>Asad Malik</dc:creator>
      <dc:date>2001-12-11T14:17:00Z</dc:date>
    </item>
  </channel>
</rss>

