<?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 question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4071081#M307538</link>
    <description>it looks right ..</description>
    <pubDate>Sun, 16 Sep 2007 00:45:51 GMT</pubDate>
    <dc:creator>Manuales</dc:creator>
    <dc:date>2007-09-16T00:45:51Z</dc:date>
    <item>
      <title>script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4071080#M307537</link>
      <description>Hello,&lt;BR /&gt;I'm not a scripting person.I have an application script.And wanted to set it up for start at boot.I have copied the script to appropriate dir and created links.And posted a script here.Could some one take a look and please advice if it looks right in general.Really appreciate you.&lt;BR /&gt;Thanks&lt;BR /&gt;#!/bin/sh &lt;BR /&gt;&lt;BR /&gt;if [ $# -ne 1 ]; then &lt;BR /&gt;        echo "Usage: $0 {start|stop|restart}" &lt;BR /&gt;        exit 1 &lt;BR /&gt;fi &lt;BR /&gt;&lt;BR /&gt;SWSBIN=/export/home/application/swt/sws/sws2007/bin &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;case "$1" in &lt;BR /&gt;        'start') &lt;BR /&gt;                echo "Starting sws" &lt;BR /&gt;             /bin/su sws -c $SWSBIN/sws start &lt;BR /&gt;                ;; &lt;BR /&gt;        'stop') &lt;BR /&gt;              echo "Stopping sws" &lt;BR /&gt;           /bin/su sws  -c $SWSBIN/sws stop   &lt;BR /&gt;               ;; &lt;BR /&gt;esac &lt;BR /&gt;#&lt;BR /&gt;</description>
      <pubDate>Sun, 16 Sep 2007 00:13:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4071080#M307537</guid>
      <dc:creator>navin</dc:creator>
      <dc:date>2007-09-16T00:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4071081#M307538</link>
      <description>it looks right ..</description>
      <pubDate>Sun, 16 Sep 2007 00:45:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4071081#M307538</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2007-09-16T00:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4071082#M307539</link>
      <description>I think that is correct. I would add:&lt;BR /&gt;&lt;BR /&gt;restart)&lt;BR /&gt;echo "Restarting sws"&lt;BR /&gt;/bin/su sws -c $SWSBIN/sws stop&lt;BR /&gt;/bin/su sws -c $SWSBIN/sws start &lt;BR /&gt;;;&lt;BR /&gt;status)&lt;BR /&gt;ps -ef |grep &lt;PROGRAM name=""&gt;&lt;BR /&gt;;;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The status should be modified so the script is able to report if the service is running or not.&lt;/PROGRAM&gt;</description>
      <pubDate>Sun, 16 Sep 2007 01:03:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4071082#M307539</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-09-16T01:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4071083#M307540</link>
      <description>If this is a rc(1M) script, you need to look at the man page:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60130/rc.1M.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60130/rc.1M.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It needs: start stop start_msg stop_msg&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1140119" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1140119&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;'start')&lt;BR /&gt;&lt;BR /&gt;There is no need to quote those patterns.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;/bin/su sws -c $SWSBIN/sws start&lt;BR /&gt;&lt;BR /&gt;The string after -c must be quoted if more than one token:&lt;BR /&gt;/bin/su sws -c "$SWSBIN/sws start"</description>
      <pubDate>Sun, 16 Sep 2007 02:29:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4071083#M307540</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-09-16T02:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4071084#M307541</link>
      <description>Thanks for all your reply.&lt;BR /&gt;I will be testing this tomorrow.Until that i would like to keep this thread open .Then surey i will assign the points .&lt;BR /&gt;Thanks again for taking time to reply.</description>
      <pubDate>Sun, 16 Sep 2007 07:46:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4071084#M307541</guid>
      <dc:creator>navin</dc:creator>
      <dc:date>2007-09-16T07:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4071085#M307542</link>
      <description>Thanks for your reply.I would like keep this thread open till tomorrow then surely i will assign the points.Thanks again for your time.</description>
      <pubDate>Sun, 16 Sep 2007 07:51:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4071085#M307542</guid>
      <dc:creator>navin</dc:creator>
      <dc:date>2007-09-16T07:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4071086#M307543</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;to be HP-UX complaint, you'd have to code the additional options&lt;BR /&gt;&lt;BR /&gt;start_msg) echo Starting xxx ;;&lt;BR /&gt;stop_msg) echo Stopping xxx ;;&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Mon, 17 Sep 2007 10:05:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4071086#M307543</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2007-09-17T10:05:08Z</dc:date>
    </item>
  </channel>
</rss>

