<?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: Shell Wrapper in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-wrapper/m-p/3762533#M259698</link>
    <description>Two ways to do it.&lt;BR /&gt;&lt;BR /&gt;echo "your_choice1 your_choice2" | qmadmin&lt;BR /&gt;(Depends on qmadmin command. It may work or may not)&lt;BR /&gt;&lt;BR /&gt;Otherwise use here document.&lt;BR /&gt;&lt;BR /&gt;qmadmin first_arg &amp;lt;&amp;lt; END&lt;BR /&gt;command1&lt;BR /&gt;command2&lt;BR /&gt;END</description>
    <pubDate>Fri, 31 Mar 2006 05:07:02 GMT</pubDate>
    <dc:creator>RAC_1</dc:creator>
    <dc:date>2006-03-31T05:07:02Z</dc:date>
    <item>
      <title>Shell Wrapper</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-wrapper/m-p/3762531#M259696</link>
      <description>I have this tuxedo qmadmin ( similar to sqlplus )command which opens up a session to clear the tuxedo queues.As most the reps here do not know tuxedo,I need to create a shell wrapper for them to execute.&lt;BR /&gt;&lt;BR /&gt;Here is the wrapper I am trying to create:&lt;BR /&gt;-----------------------------------------------&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;. /aqq/dolid/test/cur/admin/tux/.profile&lt;BR /&gt;cat ubbsource |grep OPEN|grep "/appl/solid"|grep -v "/tux"&lt;BR /&gt;echo "Select Queue Name and Path"&lt;BR /&gt;read resp1&lt;BR /&gt;qmadmin $resp1&lt;BR /&gt;!echo "Open the queue space using the name from above"&lt;BR /&gt;!read resp2 #this is where its not working ..how to make it read the response #once inside the qmadmin&lt;BR /&gt;qopen $resp2&lt;BR /&gt;!echo "Doing qinfo now, look for all ErrHold Queues"&lt;BR /&gt;qinfo&lt;BR /&gt;q&lt;BR /&gt;!&lt;BR /&gt;&lt;BR /&gt;----------------------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Mar 2006 15:49:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-wrapper/m-p/3762531#M259696</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2006-03-30T15:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Wrapper</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-wrapper/m-p/3762532#M259697</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;it is hard to check what you really wont - so I try to guess:&lt;BR /&gt;- qmadmin reads tuxedo commands from stdin&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;read resp1&lt;BR /&gt;qmadmin $resp1 &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;cmd1&lt;BR /&gt;cmd2&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;The resulting output will be in $resp2, and you can analyze this output to get further information, e.g.&lt;BR /&gt;&lt;BR /&gt;myinfo=$(print "$resp2" | awk ...)&lt;BR /&gt;qmadmin $resp1 &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;cmd3 $myinfo&lt;BR /&gt;cmd4 $resp1&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Mar 2006 05:01:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-wrapper/m-p/3762532#M259697</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-03-31T05:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Wrapper</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-wrapper/m-p/3762533#M259698</link>
      <description>Two ways to do it.&lt;BR /&gt;&lt;BR /&gt;echo "your_choice1 your_choice2" | qmadmin&lt;BR /&gt;(Depends on qmadmin command. It may work or may not)&lt;BR /&gt;&lt;BR /&gt;Otherwise use here document.&lt;BR /&gt;&lt;BR /&gt;qmadmin first_arg &amp;lt;&amp;lt; END&lt;BR /&gt;command1&lt;BR /&gt;command2&lt;BR /&gt;END</description>
      <pubDate>Fri, 31 Mar 2006 05:07:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-wrapper/m-p/3762533#M259698</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-03-31T05:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Wrapper</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-wrapper/m-p/3762534#M259699</link>
      <description>Hunki,&lt;BR /&gt;&lt;BR /&gt;What are you expecting the user to do after&lt;BR /&gt;!echo "Open the queue space using the name from above"  ???&lt;BR /&gt;Are you expecting the user to run some command ?? If yes cant you yourself run the command in the script as the user has alerady provided the queue name as alerady suggested by others.&lt;BR /&gt;&lt;BR /&gt;qmadmin $resp1 &amp;lt;&lt;EOF&gt;&amp;gt; logfile&lt;BR /&gt;qopen $resp1&lt;BR /&gt;!echo "Doing qinfo now, look for all ErrHold Queues"&lt;BR /&gt;qinfo&lt;BR /&gt;q&lt;BR /&gt;!&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Ninad&lt;/EOF&gt;</description>
      <pubDate>Fri, 31 Mar 2006 07:57:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-wrapper/m-p/3762534#M259699</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-03-31T07:57:03Z</dc:date>
    </item>
  </channel>
</rss>

