<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254331#M175923</link>
    <description>At the begining of the script you have to specify the Shell which you are going to use and ensure that the related binaries are present at there respective location.&lt;BR /&gt;for e.g. &lt;BR /&gt;#!/usr/bin/sh &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 21 Apr 2004 00:11:26 GMT</pubDate>
    <dc:creator>Bharat Katkar</dc:creator>
    <dc:date>2004-04-21T00:11:26Z</dc:date>
    <item>
      <title>Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254327#M175919</link>
      <description>Hi Guys,&lt;BR /&gt;&lt;BR /&gt;I am giving my original script.&lt;BR /&gt;Script:&lt;BR /&gt;&lt;BR /&gt;echo&lt;BR /&gt;  echo '                  \c'&lt;BR /&gt;         tput smso&lt;BR /&gt;         echo 'WARNING: Training Database ? '&lt;BR /&gt;         tput rmso&lt;BR /&gt;         echo '     Are U Sure [Y/N]: \c'&lt;BR /&gt;         read reply&lt;BR /&gt;         /data/xxxx/xxxxx/xxxxx&lt;BR /&gt;         ;; &lt;BR /&gt;&lt;BR /&gt;In the above script,suppose i choose either yes or no then it will go to training database.&lt;BR /&gt;&lt;BR /&gt;Pls modify the script for the below options,&lt;BR /&gt;&lt;BR /&gt;Yes --&amp;gt; /data/xxxx/xxxxx/xxxxx&lt;BR /&gt;No  ----&amp;gt; /usr/bin/xxxx&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;M.Suresh&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Apr 2004 22:55:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254327#M175919</guid>
      <dc:creator>M.sureshkumar</dc:creator>
      <dc:date>2004-04-20T22:55:47Z</dc:date>
    </item>
    <item>
      <title>Re:  Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254328#M175920</link>
      <description>read reply&lt;BR /&gt;case "${reply}" in&lt;BR /&gt;  y|Y) /data/xxxx/xxxxx/xxxxx&lt;BR /&gt;        ;;&lt;BR /&gt;  n|N) /usr/bin/xxxx&lt;BR /&gt;        ;;&lt;BR /&gt;    *) echo "Bad Response;&lt;BR /&gt;        ;;&lt;BR /&gt;esac</description>
      <pubDate>Tue, 20 Apr 2004 23:05:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254328#M175920</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-04-20T23:05:48Z</dc:date>
    </item>
    <item>
      <title>Re:  Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254329#M175921</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;After modified the script, i got the following error.&lt;BR /&gt;&lt;BR /&gt;Error:&lt;BR /&gt;&lt;BR /&gt;script interpreter "/bin/sh" not found                  &lt;BR /&gt;script interpreter link resolves to "/usr/bin/sh"       &lt;BR /&gt;/usr/bin/mfgmenu[34]: mfgdems:  not found.              &lt;BR /&gt;                                                    &lt;BR /&gt;Pls guide to me .&lt;BR /&gt;&lt;BR /&gt;Thanks.    &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Apr 2004 00:05:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254329#M175921</guid>
      <dc:creator>M.sureshkumar</dc:creator>
      <dc:date>2004-04-21T00:05:42Z</dc:date>
    </item>
    <item>
      <title>Re:  Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254330#M175922</link>
      <description>the same is also possible using if then else:&lt;BR /&gt;&lt;BR /&gt;read reply&lt;BR /&gt;if [ "$reply" = "Y" -o "reply" = "y" ]&lt;BR /&gt;   then &lt;BR /&gt;        /data/xxxx/xxxxx/xxxxx&lt;BR /&gt;   elif [ "$reply" = "N" -o "reply" = "n" ]&lt;BR /&gt;       then&lt;BR /&gt;         usr/bin/xxxx&lt;BR /&gt;       else&lt;BR /&gt;         echo " bad option "&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;         &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   &lt;BR /&gt;</description>
      <pubDate>Wed, 21 Apr 2004 00:06:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254330#M175922</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2004-04-21T00:06:58Z</dc:date>
    </item>
    <item>
      <title>Re:  Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254331#M175923</link>
      <description>At the begining of the script you have to specify the Shell which you are going to use and ensure that the related binaries are present at there respective location.&lt;BR /&gt;for e.g. &lt;BR /&gt;#!/usr/bin/sh &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Apr 2004 00:11:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254331#M175923</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2004-04-21T00:11:26Z</dc:date>
    </item>
    <item>
      <title>Re:  Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254332#M175924</link>
      <description>Can u attach ur script please &lt;BR /&gt;&lt;BR /&gt;Regds,&lt;BR /&gt;&lt;BR /&gt;Kaps</description>
      <pubDate>Wed, 21 Apr 2004 00:13:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254332#M175924</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2004-04-21T00:13:52Z</dc:date>
    </item>
    <item>
      <title>Re:  Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254333#M175925</link>
      <description>Use &lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;Also Confirm your executable is present&lt;BR /&gt;&lt;BR /&gt;In /usr/bin/mfgmenu script on 30th line see whether you have a path exported for mfgdems executable / script&lt;BR /&gt;&lt;BR /&gt;Regds,&lt;BR /&gt;&lt;BR /&gt;Kaps</description>
      <pubDate>Wed, 21 Apr 2004 00:41:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254333#M175925</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2004-04-21T00:41:37Z</dc:date>
    </item>
    <item>
      <title>Re:  Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254334#M175926</link>
      <description>Check this&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;echo&lt;BR /&gt;echo ' \c'&lt;BR /&gt;tput smso&lt;BR /&gt;echo 'WARNING: Training Database ? '&lt;BR /&gt;tput rmso&lt;BR /&gt;echo ' Are U Sure [Y/N]: \c'&lt;BR /&gt;read reply&lt;BR /&gt;if [ $reply = "y" -o $reply = "Y" ]&lt;BR /&gt;then&lt;BR /&gt;echo "Yes"&lt;BR /&gt;/data/xxxx/xxxxx/xxxxx&lt;BR /&gt;elif [ $reply = "n" -o $reply = "N" ]&lt;BR /&gt;then&lt;BR /&gt;echo "No"&lt;BR /&gt;/usr/bin/xxxx&lt;BR /&gt;else echo "Invalid"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;sks</description>
      <pubDate>Wed, 21 Apr 2004 00:41:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254334#M175926</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2004-04-21T00:41:52Z</dc:date>
    </item>
    <item>
      <title>Re:  Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254335#M175927</link>
      <description>I'd do it this way&lt;BR /&gt; &lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;TARGET=/data/xxxx/xxxxx/xxxxx&lt;BR /&gt;echo&lt;BR /&gt;echo ' \c'&lt;BR /&gt;tput smso&lt;BR /&gt;echo 'WARNING: Training Database ? '&lt;BR /&gt;tput rmso&lt;BR /&gt;echo ' Are U Sure [Y/N]: \c'&lt;BR /&gt;read reply&lt;BR /&gt;[[ $reply == "y" -o $reply == "Y" ]] &amp;amp;&amp;amp; TARGET=/usr/bin/xxxx&lt;BR /&gt;&lt;BR /&gt;$TARGET</description>
      <pubDate>Wed, 21 Apr 2004 01:00:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254335#M175927</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-04-21T01:00:23Z</dc:date>
    </item>
    <item>
      <title>Re:  Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254336#M175928</link>
      <description>Apologies, I just got in and already my brain is failing.  Scrap that last one.  Doesn't work too well if there is user input involved.</description>
      <pubDate>Wed, 21 Apr 2004 01:06:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254336#M175928</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-04-21T01:06:12Z</dc:date>
    </item>
    <item>
      <title>Re:  Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254337#M175929</link>
      <description>Hi Guys,&lt;BR /&gt;&lt;BR /&gt;I Have attached my full script.&lt;BR /&gt;&lt;BR /&gt;Pls modify the script in 3rd switch for the below options,&lt;BR /&gt;&lt;BR /&gt;Yes --&amp;gt; /data/xxxx/xxxxx/xxxxx&lt;BR /&gt;No ----&amp;gt; /usr/bin/xxxx&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;M.Suresh.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Apr 2004 21:06:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254337#M175929</guid>
      <dc:creator>M.sureshkumar</dc:creator>
      <dc:date>2004-04-21T21:06:16Z</dc:date>
    </item>
    <item>
      <title>Re:  Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254338#M175930</link>
      <description>Go thr' attached script.</description>
      <pubDate>Wed, 21 Apr 2004 23:53:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254338#M175930</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2004-04-21T23:53:16Z</dc:date>
    </item>
    <item>
      <title>Re:  Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254339#M175931</link>
      <description>I have assigned points to   5  of   87  responses to  my questions.&lt;BR /&gt;&lt;BR /&gt;Can u go through this following link please I think u r new here.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=140137" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=140137&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Kaps</description>
      <pubDate>Thu, 22 Apr 2004 00:35:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254339#M175931</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2004-04-22T00:35:34Z</dc:date>
    </item>
    <item>
      <title>Re:  Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254340#M175932</link>
      <description>Hi Suresh,&lt;BR /&gt;&lt;BR /&gt;Attaching the modified script&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Santosh</description>
      <pubDate>Thu, 22 Apr 2004 00:47:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254340#M175932</guid>
      <dc:creator>Santosh_16</dc:creator>
      <dc:date>2004-04-22T00:47:17Z</dc:date>
    </item>
    <item>
      <title>Re:  Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254341#M175933</link>
      <description>Hi Guys,&lt;BR /&gt;&lt;BR /&gt;I am sending the same script,pls modify the below options,&lt;BR /&gt;&lt;BR /&gt;Yes ---&amp;gt; /data/xxxx/xxxxx&lt;BR /&gt;No ----&amp;gt;  0) exit i.e last switch in my script&lt;BR /&gt;&lt;BR /&gt;Pls modify this script.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Suresh.</description>
      <pubDate>Thu, 22 Apr 2004 22:21:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254341#M175933</guid>
      <dc:creator>M.sureshkumar</dc:creator>
      <dc:date>2004-04-22T22:21:42Z</dc:date>
    </item>
    <item>
      <title>Re:  Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254342#M175934</link>
      <description>Suresh,&lt;BR /&gt;&lt;BR /&gt;It will always be better not to depend on other's but take their advise and action ur selves....&lt;BR /&gt;&lt;BR /&gt;Your script is a very simple shell script. Let's see what it does ..&lt;BR /&gt;&lt;BR /&gt;Check what is read in "x" variable&lt;BR /&gt;if x is&lt;BR /&gt;&lt;BR /&gt;1). Execute /xxx/xxxclst&lt;BR /&gt;2). Execute /xxx/xxxclst&lt;BR /&gt;3). Read another variable and check it is "y" or "N" and if &lt;BR /&gt;&lt;BR /&gt;    Y). Execute /xxxx/xxxx/xxxx/&lt;BR /&gt;    N). Exit&lt;BR /&gt;4). Execute /xx/xx/xxx&lt;BR /&gt;5). Execute passwd&lt;BR /&gt;6). Execute exit&lt;BR /&gt;&lt;BR /&gt;To achieve what u need in 3'rd condition,&lt;BR /&gt;&lt;BR /&gt;You have to add the following lines just after &lt;BR /&gt;echo '                                  Are U Sure [Y/N]: \c'&lt;BR /&gt;read REPLY&lt;BR /&gt;      case $REPLY in&lt;BR /&gt;        Y) /xxxx/xxxx/xxxx/ ;;&lt;BR /&gt;        N) exit 8 ;;&lt;BR /&gt;      esac&lt;BR /&gt;;;&lt;BR /&gt;4) .... Continue with the same script&lt;BR /&gt;&lt;BR /&gt;Regds,&lt;BR /&gt;&lt;BR /&gt;Kaps&lt;BR /&gt;&lt;BR /&gt;Note : People spend lots of time on ur requests did u get a chance to look at the URL on my last query and assign some rewards ?.</description>
      <pubDate>Fri, 23 Apr 2004 03:13:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254342#M175934</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2004-04-23T03:13:54Z</dc:date>
    </item>
    <item>
      <title>Re:  Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254343#M175935</link>
      <description>Suresh ,&lt;BR /&gt;Kapil is right. &lt;BR /&gt;I think u need to take look at two aspects.&lt;BR /&gt;Your Action / Rewards.&lt;BR /&gt;I my self feel very pleasing if anybody helps me when i am in problem.&lt;BR /&gt;&lt;BR /&gt;Bharat&lt;BR /&gt;&lt;BR /&gt;** Go thr' the link suggested&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Apr 2004 03:23:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254343#M175935</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2004-04-23T03:23:49Z</dc:date>
    </item>
    <item>
      <title>Re:  Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254344#M175936</link>
      <description>Hi Guys,&lt;BR /&gt;&lt;BR /&gt;Thanks, I findout that problem, the problem was syntex problem.Now it's working fine.&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;Suresh&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Apr 2004 04:48:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254344#M175936</guid>
      <dc:creator>M.sureshkumar</dc:creator>
      <dc:date>2004-04-23T04:48:43Z</dc:date>
    </item>
    <item>
      <title>Re:  Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254345#M175937</link>
      <description>Suresh,&lt;BR /&gt;&lt;BR /&gt;I can not believe that ur script worked and it was just a syntax problem ! Your script needs correction from my view it is missing a case /if loop which I have pointed out.&lt;BR /&gt;&lt;BR /&gt;Kaps&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Apr 2004 05:00:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3254345#M175937</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2004-04-23T05:00:46Z</dc:date>
    </item>
  </channel>
</rss>

