<?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: Need help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/4255581#M687757</link>
    <description>&amp;gt;Bad : mod in $.&lt;BR /&gt;&lt;BR /&gt;Reading the scummy csh man page carefully shows this is the bad line:&lt;BR /&gt;#echo "$1:`cat ha2.txt`"&lt;BR /&gt;&lt;BR /&gt;You need to change it to:&lt;BR /&gt;#echo "${1}:`cat ha2.txt`"&lt;BR /&gt;&lt;BR /&gt;If you used a real shell you could just do:&lt;BR /&gt;echo "$1:$(&amp;lt; ha2.txt)"</description>
    <pubDate>Thu, 21 Aug 2008 07:20:52 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-08-21T07:20:52Z</dc:date>
    <item>
      <title>Need help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/4255578#M687754</link>
      <description>Hi,&lt;BR /&gt;I have written a shell script and getting error.Any help on how to fix it.&lt;BR /&gt;&lt;BR /&gt;update a439487.ora_dev_inventory set HA='${sa_svr}' where lower(HOST_NM)='${pa_svr}' and INV_DT=sysdate;..i getting error in this line.&lt;BR /&gt;&lt;BR /&gt;I have set the environment variable (sa_svr,pa_svr).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;error message.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bad : mod in $.&lt;BR /&gt;&lt;BR /&gt;Any help/</description>
      <pubDate>Thu, 21 Aug 2008 05:54:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/4255578#M687754</guid>
      <dc:creator>CSHELL</dc:creator>
      <dc:date>2008-08-21T05:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/4255579#M687755</link>
      <description>The first thing you should do is throw the scummy csh in the garbage and use a real shell, sh or ksh.&lt;BR /&gt;&lt;BR /&gt;You example seems to mix comments and shell commands, please put them one per line so we can see them.  Or you may have to attach your script.</description>
      <pubDate>Thu, 21 Aug 2008 06:15:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/4255579#M687755</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-08-21T06:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/4255580#M687756</link>
      <description>i have pasted script below.&lt;BR /&gt;&lt;BR /&gt;#!/bin/csh&lt;BR /&gt;sqlplus  &lt;USERNAME&gt;/&lt;PASSWORD&gt;&lt;DB_NAME&gt; &amp;lt;&amp;lt; EOF &amp;gt; vinoth.log&lt;BR /&gt;set heading off;&lt;BR /&gt;set serveroutput on;&lt;BR /&gt;DECLARE&lt;BR /&gt;instance_nme varchar2(30);&lt;BR /&gt;rac_status varchar2(10);&lt;BR /&gt;host_nme varchar2(20);&lt;BR /&gt;begin&lt;BR /&gt;select instance_name,host_name,parallel into instance_nme,host_nme,rac_status from v\$instance;&lt;BR /&gt;dbms_output.put_line(instance_nme||':'||host_nme||':'||rac_status);&lt;BR /&gt;end;&lt;BR /&gt;/&lt;BR /&gt;EOF&lt;BR /&gt;##Ogrep -vw "YES" vinoth.log &amp;gt; vinoth1.log&lt;BR /&gt;grep "YES" vinoth.log &amp;gt; vinoth1.log&lt;BR /&gt;cat vinoth1.log|awk -F: '{print $2}' &amp;gt; vinoth_nrac.log&lt;BR /&gt;foreach host  ( `cat /datdevdal2/fdat/dev/vinoth/vinoth_nrac.log` )&lt;BR /&gt;#do&lt;BR /&gt;rsh $host -l datprd ps -ef|grep had|grep -v grep &amp;gt; /tmp/vinoth.txt&lt;BR /&gt;if ( ! -z /tmp/vinoth.txt) then&lt;BR /&gt;rsh $host -l datprd cat /etc/llthosts|grep -w 1|awk '{print $1":"$2}'&amp;gt; ha2.txt&lt;BR /&gt;##rsh $host -l datprd cat /etc/llthosts &amp;gt; temp.txt&lt;BR /&gt;set sa_svr=`cat ha2.txt|awk -F: '{print $2}'`&lt;BR /&gt;##set pa_svr=`cat ha2.txt|awk -F: '{print $1}'`&lt;BR /&gt;rsh $host -l datprd cat /etc/llthosts|grep -w 0|awk '{print $1":"$2}'&amp;gt; ha3.txt&lt;BR /&gt;set pa_svr=`cat ha3.txt|awk -F: '{print $2}'`&lt;BR /&gt;echo $sa_svr&lt;BR /&gt;echo $pa_svr&lt;BR /&gt;&lt;BR /&gt;-----Till this no error looks fine.&lt;BR /&gt;#db_nm=`grep $1 vinoth.log|awk '{print $1}'`&lt;BR /&gt;sqlplus  &lt;USERNAME&gt;/&lt;PASSWORD&gt;&lt;DB_NAME&gt; &amp;lt;&amp;lt; EOF &amp;gt; vintoh_update.log&lt;BR /&gt;update a439487.ora_dev_inventory set HA='${sa_svr}' where lower(HOST_NM)='${pa_svr}' and INV_DT=sysdate;&lt;BR /&gt;&lt;BR /&gt;#rsh $1 -l datprd cat /etc/llthosts|grep -w 1|awk '{print $2}' &amp;gt; ha2.txt&lt;BR /&gt;#echo "$1:`cat ha2.txt`"&lt;BR /&gt; commit;&lt;BR /&gt;/&lt;BR /&gt;endif&lt;BR /&gt;EOF&lt;BR /&gt;#done&lt;BR /&gt;&lt;/DB_NAME&gt;&lt;/PASSWORD&gt;&lt;/USERNAME&gt;&lt;/DB_NAME&gt;&lt;/PASSWORD&gt;&lt;/USERNAME&gt;</description>
      <pubDate>Thu, 21 Aug 2008 06:18:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/4255580#M687756</guid>
      <dc:creator>CSHELL</dc:creator>
      <dc:date>2008-08-21T06:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/4255581#M687757</link>
      <description>&amp;gt;Bad : mod in $.&lt;BR /&gt;&lt;BR /&gt;Reading the scummy csh man page carefully shows this is the bad line:&lt;BR /&gt;#echo "$1:`cat ha2.txt`"&lt;BR /&gt;&lt;BR /&gt;You need to change it to:&lt;BR /&gt;#echo "${1}:`cat ha2.txt`"&lt;BR /&gt;&lt;BR /&gt;If you used a real shell you could just do:&lt;BR /&gt;echo "$1:$(&amp;lt; ha2.txt)"</description>
      <pubDate>Thu, 21 Aug 2008 07:20:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/4255581#M687757</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-08-21T07:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/4255582#M687758</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;I'm with Dennis.  Avoid the C shell!  You should read this classic post by Tom Christiansen:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/" target="_blank"&gt;http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I would urge you to use the standard HP-UX shell ('/usr/bin/sh') which is a POSIX superset of the Korn shell.  For 'root' this shell exists as '/sbin/sh' and is a statically linked binary necessary during boot up when '/usr' isn't mounted and hence the dynamic libaries are not available.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 21 Aug 2008 09:51:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/4255582#M687758</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-08-21T09:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/4255583#M687759</link>
      <description>If your question is answered, please read the following about assigning points:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;</description>
      <pubDate>Fri, 22 Aug 2008 09:05:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/4255583#M687759</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-08-22T09:05:14Z</dc:date>
    </item>
  </channel>
</rss>

