<?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 Query in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/3880924#M280052</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the content of the attached files does not contain any references to the above mentioned file oracle-ds.xml .&lt;BR /&gt;2nd, I cannot find a reference to LOGNAME, USER or other environment related stuff there, as well.&lt;BR /&gt;&lt;BR /&gt;This makes it difficult to provide solutions...&lt;BR /&gt;&lt;BR /&gt;There IS a reference to a non-default configuration file:&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;# Read an optional running configuration file&lt;BR /&gt;if [ "x$RUN_CONF" = "x" ]; then&lt;BR /&gt;    RUN_CONF="$DIRNAME/run.conf"&lt;BR /&gt;fi&lt;BR /&gt;if [ -r "$RUN_CONF" ]; then&lt;BR /&gt;    . "$RUN_CONF"&lt;BR /&gt;fi&lt;BR /&gt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;What about setting&lt;BR /&gt;RUN_CONF=/path/to/my/configuration.conf&lt;BR /&gt;?&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
    <pubDate>Mon, 16 Oct 2006 11:45:43 GMT</pubDate>
    <dc:creator>Peter Nikitka</dc:creator>
    <dc:date>2006-10-16T11:45:43Z</dc:date>
    <item>
      <title>Script Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/3880922#M280050</link>
      <description>I have two scripts to run and shutdown jboss called run.sh and shutdown.sh.&lt;BR /&gt;&lt;BR /&gt;We have two environments running on the same box - develop and test. We need jboss to be up and running for either one of them .To point the jboss to either environments , I need to make a minor change to a file called oracle-ds.xml , just change the oracle SID in that file and also change the username and passwd for the DB in that file. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The standard distro scripts are attached herewith. &lt;BR /&gt;&lt;BR /&gt;I need to make a change to the script so that I can restart the jboss logged in through the different userids for each environment.( called dev and test userids ) and it should automatically pick up the environment depending on the userid which is being used to run it. Can some incorporate the change in this script.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Mon, 16 Oct 2006 11:28:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/3880922#M280050</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2006-10-16T11:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Script Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/3880923#M280051</link>
      <description>Here are the scripts attached.</description>
      <pubDate>Mon, 16 Oct 2006 11:30:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/3880923#M280051</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2006-10-16T11:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Script Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/3880924#M280052</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the content of the attached files does not contain any references to the above mentioned file oracle-ds.xml .&lt;BR /&gt;2nd, I cannot find a reference to LOGNAME, USER or other environment related stuff there, as well.&lt;BR /&gt;&lt;BR /&gt;This makes it difficult to provide solutions...&lt;BR /&gt;&lt;BR /&gt;There IS a reference to a non-default configuration file:&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;# Read an optional running configuration file&lt;BR /&gt;if [ "x$RUN_CONF" = "x" ]; then&lt;BR /&gt;    RUN_CONF="$DIRNAME/run.conf"&lt;BR /&gt;fi&lt;BR /&gt;if [ -r "$RUN_CONF" ]; then&lt;BR /&gt;    . "$RUN_CONF"&lt;BR /&gt;fi&lt;BR /&gt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;What about setting&lt;BR /&gt;RUN_CONF=/path/to/my/configuration.conf&lt;BR /&gt;?&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Mon, 16 Oct 2006 11:45:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/3880924#M280052</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-10-16T11:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Script Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/3880925#M280053</link>
      <description>Here is what I have : &lt;BR /&gt;&lt;BR /&gt;Single box with JBOSS installed , to make it run for either of the two environments ( which have two different userids - dev and test ) I need to make a change in a file $JBOSS_HOME/server/default/deploy/oracle-ds.xml. &lt;BR /&gt;In my $JBOSS_HOME/server/default/deploy , i have created two more files by the name : &lt;BR /&gt;oracle-ds.xml.dev and oracle-ds.xml.test so that in my run.sh  script I can have a way of determining thru which user i m running the jboss ( whoami ) and then overwrite the oracle-ds.xml and then start jboss.&lt;BR /&gt;&lt;BR /&gt;The pieces which are missing are needed inside that script.</description>
      <pubDate>Mon, 16 Oct 2006 12:07:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/3880925#M280053</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2006-10-16T12:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Script Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/3880926#M280054</link>
      <description>&lt;!--!*#--&gt;Ok, in run.sh, after JBOSS_HOME is defined:&lt;BR /&gt;&lt;BR /&gt;if [ $LOGNAME -s "dev" ] &lt;BR /&gt;then&lt;BR /&gt; cp $JBOSS_HOME/server/default/deploy/oracle-ds.xml.dev \&lt;BR /&gt;    $JBOSS_HOME/server/default/deploy/oracle-ds.xml&lt;BR /&gt;else&lt;BR /&gt; cp $JBOSS_HOME/server/default/deploy/oracle-ds.xml.test \&lt;BR /&gt;    $JBOSS_HOME/server/default/deploy/oracle-ds.xml&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;you could also use symbolic links.&lt;BR /&gt;&lt;BR /&gt;NOTE: This has NOT been tested, as I don't have Oracle or J-Boss</description>
      <pubDate>Mon, 16 Oct 2006 12:53:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/3880926#M280054</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2006-10-16T12:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/3880927#M280055</link>
      <description>BTW: make that &lt;BR /&gt;&lt;BR /&gt;if [ $LOGNAME = "dev" ]&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Oct 2006 12:55:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/3880927#M280055</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2006-10-16T12:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Script Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/3880928#M280056</link>
      <description>Based on the points assigned, the answers given didn't solve your issues, so what's missing?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Oct 2006 08:50:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/3880928#M280056</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2006-10-17T08:50:30Z</dc:date>
    </item>
  </channel>
</rss>

