<?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 help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249961#M175207</link>
    <description>Are you done sanjiv ?. Actually i did not really uinderstand ur requirement !&lt;BR /&gt;&lt;BR /&gt;Kaps</description>
    <pubDate>Fri, 16 Apr 2004 01:46:31 GMT</pubDate>
    <dc:creator>KapilRaj</dc:creator>
    <dc:date>2004-04-16T01:46:31Z</dc:date>
    <item>
      <title>script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249952#M175198</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to have a script. The funtion of this script is to check a list of database names from a text file and then execute another 3 numbers scripts(available with me) for each of the names.&lt;BR /&gt;&lt;BR /&gt;Text file:&lt;BR /&gt;DB1&lt;BR /&gt;DB2&lt;BR /&gt;DB3&lt;BR /&gt;DB4&lt;BR /&gt;etc...&lt;BR /&gt;&lt;BR /&gt;My new script should read DB1 first and then execute about 3 more scripts.&lt;BR /&gt;Then it reads DB2 and execute the same  three scripts and so on till the last DB.&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Fri, 16 Apr 2004 01:03:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249952#M175198</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2004-04-16T01:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249953#M175199</link>
      <description>for DBASE in `cat textfile`&lt;BR /&gt;do&lt;BR /&gt;case $DBASE in &lt;BR /&gt;DB1) scr1,scr2,scr3 ;;&lt;BR /&gt;DB2) scr4,scr5,scr6 ;;&lt;BR /&gt;...&lt;BR /&gt;..&lt;BR /&gt;esac&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Is this what u need ?&lt;BR /&gt;&lt;BR /&gt;Kaps</description>
      <pubDate>Fri, 16 Apr 2004 01:06:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249953#M175199</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2004-04-16T01:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249954#M175200</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;create a text file named testfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;then this piece of code will do:&lt;BR /&gt;&lt;BR /&gt;###BEGIN SCRIPT&lt;BR /&gt;for i in `cat testfile`&lt;BR /&gt;do&lt;BR /&gt;   /myscript1 $i #Execute Script1&lt;BR /&gt;   /myscript2 $i #Execute Script2&lt;BR /&gt;   /myscript3 $i #Execute Script3&lt;BR /&gt;done&lt;BR /&gt;###END SCRIPT&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here i am passing the values as parameters to the script.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;vj&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Apr 2004 01:09:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249954#M175200</guid>
      <dc:creator>Vijaya Kumar_3</dc:creator>
      <dc:date>2004-04-16T01:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249955#M175201</link>
      <description>It is not very clear to me.&lt;BR /&gt;Lets be more specific:&lt;BR /&gt;&lt;BR /&gt;Text filename is testfile.&lt;BR /&gt;Contents of the file is &lt;BR /&gt;DB1&lt;BR /&gt;DB2&lt;BR /&gt;DB3&lt;BR /&gt;etc...&lt;BR /&gt;&lt;BR /&gt;My three scripts are :&lt;BR /&gt;/home/oracle/scripts/a.sh&lt;BR /&gt;/home/oracle/scripts/b.sh&lt;BR /&gt;/home/oracle/scripts/c.sh&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Apr 2004 01:16:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249955#M175201</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2004-04-16T01:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249956#M175202</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;$ cat testfile&lt;BR /&gt;DB1&lt;BR /&gt;DB2&lt;BR /&gt;DB3&lt;BR /&gt;...&lt;BR /&gt;$ &lt;BR /&gt;&lt;BR /&gt;Then the script is mine.sh&lt;BR /&gt;&lt;BR /&gt;$ cat mine.sh&lt;BR /&gt;###BEGIN SCRIPT&lt;BR /&gt;for i in `cat testfile`&lt;BR /&gt;do&lt;BR /&gt; /home/oracle/scripts/a.sh&lt;BR /&gt; /home/oracle/scripts/b.sh&lt;BR /&gt; /home/oracle/scripts/c.sh&lt;BR /&gt;done&lt;BR /&gt;###END SCRIPT&lt;BR /&gt;$&lt;BR /&gt;$ ksh mine.sh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;it will do what you want&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Vijay&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Apr 2004 01:22:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249956#M175202</guid>
      <dc:creator>Vijaya Kumar_3</dc:creator>
      <dc:date>2004-04-16T01:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249957#M175203</link>
      <description>I really dont understand why are you running these without  a need for DB1,DB2 values.&lt;BR /&gt;&lt;BR /&gt;Generally, you may need this value inside the script.&lt;BR /&gt;&lt;BR /&gt;Can u please tell what are you going to do with Db1,Db2 etc , inside the script.&lt;BR /&gt;&lt;BR /&gt;Vijay</description>
      <pubDate>Fri, 16 Apr 2004 01:24:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249957#M175203</guid>
      <dc:creator>Vijaya Kumar_3</dc:creator>
      <dc:date>2004-04-16T01:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249958#M175204</link>
      <description>Hi sanjiv,&lt;BR /&gt;  This below script should help you.&lt;BR /&gt;&lt;BR /&gt;for DBASE in `cat testfile`&lt;BR /&gt;do&lt;BR /&gt;case $DBASE in &lt;BR /&gt;DB1) /home/oracle/scripts/a.sh ;;&lt;BR /&gt;DB2) /home/oracle/scripts/b.sh ;;&lt;BR /&gt;DB3) /home/oracle/scripts/c.sh ;;&lt;BR /&gt;esac&lt;BR /&gt;done</description>
      <pubDate>Fri, 16 Apr 2004 01:34:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249958#M175204</guid>
      <dc:creator>V.Tamilvanan</dc:creator>
      <dc:date>2004-04-16T01:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249959#M175205</link>
      <description>Hi Vijaya,&lt;BR /&gt;&lt;BR /&gt;Yes. Maybe I wat not clear. &lt;BR /&gt;I want the tree script to run on DB1 and then on DB2 and so on..&lt;BR /&gt;&lt;BR /&gt;What should we need to change on your given script to incorporate this?&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Apr 2004 01:40:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249959#M175205</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2004-04-16T01:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249960#M175206</link>
      <description>Hi sanjiv,&lt;BR /&gt;  The earlier one was for a single script . but the below one for multiple scripts.&lt;BR /&gt;&lt;BR /&gt;for DBASE in `cat testfile`&lt;BR /&gt;do&lt;BR /&gt;case $DBASE in &lt;BR /&gt;DB1) /home/oracle/scripts/a.sh; /home/oracle/scripts/b.sh; /home/oracle/scripts/c.sh  ;;&lt;BR /&gt;DB2) .................;;&lt;BR /&gt;DB3) .................;;&lt;BR /&gt;&lt;BR /&gt;esac&lt;BR /&gt;done &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH.</description>
      <pubDate>Fri, 16 Apr 2004 01:41:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249960#M175206</guid>
      <dc:creator>V.Tamilvanan</dc:creator>
      <dc:date>2004-04-16T01:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249961#M175207</link>
      <description>Are you done sanjiv ?. Actually i did not really uinderstand ur requirement !&lt;BR /&gt;&lt;BR /&gt;Kaps</description>
      <pubDate>Fri, 16 Apr 2004 01:46:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249961#M175207</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2004-04-16T01:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249962#M175208</link>
      <description>I believe Tamil's second response should work.&lt;BR /&gt;&lt;BR /&gt;I will get back after testing it.&lt;BR /&gt;&lt;BR /&gt;Thank you all.</description>
      <pubDate>Fri, 16 Apr 2004 01:52:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3249962#M175208</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2004-04-16T01:52:38Z</dc:date>
    </item>
  </channel>
</rss>

