<?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: environment variables in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3869778#M278142</link>
    <description>Hi khilari, &lt;BR /&gt;&lt;BR /&gt;Do you have TCL installed on the machine where you run this job ? If yes, you may have to create a symbolic link to /usr/lib or /usr/local/lib &lt;BR /&gt;&lt;BR /&gt;-Arun &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 26 Sep 2006 09:21:12 GMT</pubDate>
    <dc:creator>Arunvijai_4</dc:creator>
    <dc:date>2006-09-26T09:21:12Z</dc:date>
    <item>
      <title>environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3869777#M278141</link>
      <description>Hi guys, okay well i had made a cron but it is not working. What we are doing is that we r using sftp to send a file each morning but we get the following error:&lt;BR /&gt;&lt;BR /&gt;/usr/lib/dld.sl: Can't find path for shared library: libtcl8.3.sl&lt;BR /&gt;/usr/lib/dld.sl: No such file or directory&lt;BR /&gt;/home/ops/wsib/ftpscripts/copy_to_emergis: 14857 Abort(coredump)&lt;BR /&gt;&lt;BR /&gt;Any ideas. Thanks.</description>
      <pubDate>Tue, 26 Sep 2006 09:18:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3869777#M278141</guid>
      <dc:creator>khilari</dc:creator>
      <dc:date>2006-09-26T09:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3869778#M278142</link>
      <description>Hi khilari, &lt;BR /&gt;&lt;BR /&gt;Do you have TCL installed on the machine where you run this job ? If yes, you may have to create a symbolic link to /usr/lib or /usr/local/lib &lt;BR /&gt;&lt;BR /&gt;-Arun &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Sep 2006 09:21:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3869778#M278142</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-09-26T09:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3869779#M278143</link>
      <description>The subject of your posting indicates the solution. Cron intentionally has a very sparse environment and the user's .profile is not sourced. Your cron'ed scripts needs to explicitly set and export any needed environment variables. This is typically done very early in the script. &lt;BR /&gt;&lt;BR /&gt;In your case, it appears that you need to export SHLIB_PATH and PATH.</description>
      <pubDate>Tue, 26 Sep 2006 09:25:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3869779#M278143</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-09-26T09:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3869780#M278144</link>
      <description>And to amplify Clay's answer, you need to examine your entire cron job for *all* enviroment variables that will be needed. Put these in all scripts used in cron (or at or batch). cron does not login so it is a different environment.</description>
      <pubDate>Tue, 26 Sep 2006 09:52:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3869780#M278144</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-09-26T09:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3869781#M278145</link>
      <description>Well, below is the environment variable of the user as it stands right now.&lt;BR /&gt;(sjh): /hci $ env | more&lt;BR /&gt;_=/usr/bin/env&lt;BR /&gt;DBDPATH=/quovadx/qdx5.2/integrator/prodsite/exec/databases&lt;BR /&gt;MANPATH=/quovadx/qdx5.2/integrator/man:/quovadx/qdx5.2/integrator/tcl/man:/quova&lt;BR /&gt;dx/qdx5.2/integrator/dbms/man:/usr/share/man/%L:/usr/share/man:/usr/contrib/man/&lt;BR /&gt;%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man:/opt/mx/share/man:/opt/upgr&lt;BR /&gt;ade/share/man/%L:/opt/upgrade/share/man:/opt/pd/share/man/%L:/opt/pd/share/man:/&lt;BR /&gt;opt/pd/share/man/%L:/opt/pd/share/man:/opt/pd/share/man/%L:/opt/pd/share/man:/op&lt;BR /&gt;t/resmon/share/man:/opt/hparray/share/man/%L:/opt/hparray/share/man:/opt/graphic&lt;BR /&gt;s/common/man:/usr/dt/share/man:/opt/samba/man:/opt/gnome/man:/opt/ignite/share/m&lt;BR /&gt;an/%L:/opt/ignite/share/man:/opt/wbem/share/man:/opt/perf/man/%L:/opt/perf/man:/&lt;BR /&gt;opt/ssh/share/man&lt;BR /&gt;TCL_LIBRARY=/quovadx/qdx5.2/integrator/tcl/lib/tcl8.3&lt;BR /&gt;TCLX_LIBRARY=/quovadx/qdx5.2/integrator/tcl/lib/tclX8.2&lt;BR /&gt;DBFPATH=/quovadx/qdx5.2/integrator/prodsite/exec/databases&lt;BR /&gt;FPATH=/quovadx/qdx5.2/integrator/kshlib&lt;BR /&gt;SHXMON_INTERVAL=5&lt;BR /&gt;SHLIB_PATH=/quovadx/qdx5.2/integrator/clgui/java/lib/PA_RISC:/quovadx/qdx5.2/int&lt;BR /&gt;egrator/clgui/java/lib/PA_RISC/hotspot:/quovadx/qdx5.2/integrator/lib:/quovadx/q&lt;BR /&gt;dx5.2/integrator/bin:/quovadx/qdx5.2/integrator/tcl/lib:/quovadx/qdx5.2/integrat&lt;BR /&gt;or/dbms/lib:/usr/lib:/lib:/shlib:/usr/shlib&lt;BR /&gt;PATH=/quovadx/qdx5.2/integrator/prodsite/bin:/quovadx/qdx5.2/integrator/prodsite&lt;BR /&gt;/scripts:/quovadx/qdx5.2/integrator/bin:/quovadx/qdx5.2/integrator/contrib:/quov&lt;BR /&gt;adx/qdx5.2/integrator/sbin:/quovadx/qdx5.2/integrator/dbms/bin:/quovadx/qdx5.2/i&lt;BR /&gt;r/ucb:/home/hci/bin:/usr/bin/X11:/sbin:.:/usr/local/bin:/usr/local/scripts&lt;BR /&gt;COLUMNS=80&lt;BR /&gt;DBTMP=/quovadx/qdx5.2/integrator/prodsite/exec/databases&lt;BR /&gt;HCISITE=prodsite&lt;BR /&gt;ator/clgui/lib/cljava.jar:/quovadx/qdx5.2/integrator/java_uccs:&lt;BR /&gt;LOGNAME=hci&lt;BR /&gt;HCILICFILE=/quovadx/qdx5.2/integrator/vers/license.dat&lt;BR /&gt;DEV_NULL=/dev/null&lt;BR /&gt;ERASE=^H&lt;BR /&gt;LOCKMGR=lm_qdx5.2_prodsite&lt;BR /&gt;TIX_LIBRARY=/quovadx/qdx5.2/integrator/tcl/lib/tix4.1&lt;BR /&gt;BLT_LIBRARY=/quovadx/qdx5.2/integrator/tcl/lib/blt8.0&lt;BR /&gt;HCISITEDIR=/quovadx/qdx5.2/integrator/prodsite&lt;BR /&gt;TKX_LIBRARY=/quovadx/qdx5.2/integrator/tcl/lib/tkX8.2&lt;BR /&gt;SHELL=/sbin/sh&lt;BR /&gt;HCIROOT=/quovadx/qdx5.2/integrator&lt;BR /&gt;QUOVADX_INSTALL_DIR=/quovadx/qdx5.2&lt;BR /&gt;HOME=/home/hci&lt;BR /&gt;TERM=ansi&lt;BR /&gt;PWD=/home/hci&lt;BR /&gt;TZ=EST5EDT&lt;BR /&gt;HCIVERSION=5.2&lt;BR /&gt;LINES=25&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I havnt quite done anything like this before, any one can give step by step info. Or any other resource i can go and look at..&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 26 Sep 2006 10:15:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3869781#M278145</guid>
      <dc:creator>khilari</dc:creator>
      <dc:date>2006-09-26T10:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3869782#M278146</link>
      <description>Actually, you have to understand what the commands in your script require. While you could certainly just copy/paste the env list into your script, most of the environment variables are not necessary. Certainly you need the SHLIB_PATH value but the rest of the variables you would have to research. If you're in a bind for time, I would just do this:&lt;BR /&gt; &lt;BR /&gt;From your login:&lt;BR /&gt; &lt;BR /&gt;env &amp;gt; myEnv&lt;BR /&gt; &lt;BR /&gt;Then in your script which should start like this:&lt;BR /&gt; &lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;. $HOME/myEnv&lt;BR /&gt; &lt;BR /&gt;...rest of script...&lt;BR /&gt; &lt;BR /&gt;NOTE: There is a dot then space before $HOME/myEnv. This will 'source' your environment without messing up the appearance of the script too much.</description>
      <pubDate>Tue, 26 Sep 2006 12:06:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3869782#M278146</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-09-26T12:06:33Z</dc:date>
    </item>
  </channel>
</rss>

