<?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: Why does running the binary online work but not in script? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-running-the-binary-online-work-but-not-in-script/m-p/3119390#M770813</link>
    <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I set SHLIB_PATH to the "missing" directory and now it works.&lt;BR /&gt;&lt;BR /&gt;Thank you for all your help!&lt;BR /&gt;Gino&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 14 Nov 2003 08:03:45 GMT</pubDate>
    <dc:creator>Gino Castoldi_2</dc:creator>
    <dc:date>2003-11-14T08:03:45Z</dc:date>
    <item>
      <title>Why does running the binary online work but not in script?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-running-the-binary-online-work-but-not-in-script/m-p/3119385#M770808</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Server: HP-UX 11.0 OVO 7.1 Oracle 8.1.7.2&lt;BR /&gt;&lt;BR /&gt;I can successfully run an executable online, however when I run the same binary in a script&lt;BR /&gt;it fails. The error messages are this:&lt;BR /&gt;&lt;BR /&gt;root# $OMNIHOME/probes/hpux11/nco_p_vpo&lt;BR /&gt;+ /opt/netcool/omnibus/probes/hpux11/nco_p_vpo&lt;BR /&gt;/usr/lib/dld.sl: Can't find path for shared library: libintl_r.sl&lt;BR /&gt;/usr/lib/dld.sl: No such file or directory&lt;BR /&gt;./netcool_probe[25]: 8284 Abort(coredump)&lt;BR /&gt;&lt;BR /&gt;In the script I have the path for the library&lt;BR /&gt;it is looking for (libintl_r.sl) in the $PATH.&lt;BR /&gt;I also have the path for "/usr/lib"&lt;BR /&gt;I set an echo in the script and I can see&lt;BR /&gt;both path's that mentioned as set in the&lt;BR /&gt;$PATH env variable.&lt;BR /&gt;&lt;BR /&gt;Note: That library  (libintl_r.sl) is a symbolic link to another file in the same directory.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;10 points to any good answer.&lt;BR /&gt;Thank you&lt;BR /&gt;Gino&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Nov 2003 07:51:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-running-the-binary-online-work-but-not-in-script/m-p/3119385#M770808</guid>
      <dc:creator>Gino Castoldi_2</dc:creator>
      <dc:date>2003-11-14T07:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why does running the binary online work but not in script?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-running-the-binary-online-work-but-not-in-script/m-p/3119386#M770809</link>
      <description>How about setting LD_LIBRARY_PATH to point to the directory containing the library.</description>
      <pubDate>Fri, 14 Nov 2003 07:54:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-running-the-binary-online-work-but-not-in-script/m-p/3119386#M770809</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-11-14T07:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why does running the binary online work but not in script?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-running-the-binary-online-work-but-not-in-script/m-p/3119387#M770810</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I tried setting LD_LIBRARY_PATH and it failed&lt;BR /&gt;with the same errors as before.&lt;BR /&gt;&lt;BR /&gt;10 points to any good answer.&lt;BR /&gt;Thank you&lt;BR /&gt;Gino&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Nov 2003 07:58:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-running-the-binary-online-work-but-not-in-script/m-p/3119387#M770810</guid>
      <dc:creator>Gino Castoldi_2</dc:creator>
      <dc:date>2003-11-14T07:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why does running the binary online work but not in script?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-running-the-binary-online-work-but-not-in-script/m-p/3119388#M770811</link>
      <description>You also need the following environment variables set: &lt;BR /&gt;&lt;BR /&gt;LD_LIBRARY_PATH=/oracle/products/9.2.0/lib&lt;BR /&gt;SHLIB_PATH=/oracle/products/9.2.0/lib&lt;BR /&gt;LIBPATH=/oracle/products/9.2.0/lib&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The above examples are for Oracle 9.2; I don't know what the correct directories are for your implementation.&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Fri, 14 Nov 2003 07:58:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-running-the-binary-online-work-but-not-in-script/m-p/3119388#M770811</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2003-11-14T07:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why does running the binary online work but not in script?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-running-the-binary-online-work-but-not-in-script/m-p/3119389#M770812</link>
      <description>Gino,&lt;BR /&gt;&lt;BR /&gt;usually, when you run tools as root in a script the shell invokes a subshell. however you need to provide the subshell with the correct variables, the same as your own shell.&lt;BR /&gt;&lt;BR /&gt;check your environment, use #env&lt;BR /&gt;then make sure you include those in the top of your script.&lt;BR /&gt;&lt;BR /&gt;the easiest is to source root's .profile&lt;BR /&gt;&lt;BR /&gt;. /root/.profile&lt;BR /&gt;&lt;BR /&gt;peace&lt;BR /&gt;Donny</description>
      <pubDate>Fri, 14 Nov 2003 08:01:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-running-the-binary-online-work-but-not-in-script/m-p/3119389#M770812</guid>
      <dc:creator>Donny Jekels</dc:creator>
      <dc:date>2003-11-14T08:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why does running the binary online work but not in script?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-running-the-binary-online-work-but-not-in-script/m-p/3119390#M770813</link>
      <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I set SHLIB_PATH to the "missing" directory and now it works.&lt;BR /&gt;&lt;BR /&gt;Thank you for all your help!&lt;BR /&gt;Gino&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Nov 2003 08:03:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-running-the-binary-online-work-but-not-in-script/m-p/3119390#M770813</guid>
      <dc:creator>Gino Castoldi_2</dc:creator>
      <dc:date>2003-11-14T08:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why does running the binary online work but not in script?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-running-the-binary-online-work-but-not-in-script/m-p/3119391#M770814</link>
      <description>somebody knows with what package nco_p_vpo comes? I navigate insite ibm site, but only found nnm probe.</description>
      <pubDate>Tue, 17 Oct 2006 10:43:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-running-the-binary-online-work-but-not-in-script/m-p/3119391#M770814</guid>
      <dc:creator>Leonardo Sanchez</dc:creator>
      <dc:date>2006-10-17T10:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why does running the binary online work but not in script?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-running-the-binary-online-work-but-not-in-script/m-p/3119392#M770815</link>
      <description>For examples of what can go wrong when you&lt;BR /&gt;set these environment variables in general&lt;BR /&gt;locations (like "$HOME/.profile"), see:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1067213" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1067213&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1067351" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1067351&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you have a program which needs to have&lt;BR /&gt;these things set, it's often safer to use a&lt;BR /&gt;script which first sets the variables, and&lt;BR /&gt;then runs the program.&lt;BR /&gt;&lt;BR /&gt;Special settings which are good for one program&lt;BR /&gt;are often not so good for other programs.</description>
      <pubDate>Tue, 17 Oct 2006 18:04:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-running-the-binary-online-work-but-not-in-script/m-p/3119392#M770815</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-10-17T18:04:32Z</dc:date>
    </item>
  </channel>
</rss>

