<?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: Shell ksh in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-ksh/m-p/3069456#M904641</link>
    <description>Hi Jose,&lt;BR /&gt;&lt;BR /&gt;Put "set +u" at the beginning of your sybase.sh script. It inherits "set -u" from your .profile and throws out error.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
    <pubDate>Fri, 12 Sep 2003 01:16:49 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2003-09-12T01:16:49Z</dc:date>
    <item>
      <title>Shell ksh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-ksh/m-p/3069450#M904635</link>
      <description>I cannot execute script in profile of a user.  Script sybase.sh setting some variables.&lt;BR /&gt;&lt;BR /&gt;# pwd&lt;BR /&gt;/sybase&lt;BR /&gt;# ll&lt;BR /&gt;total 128&lt;BR /&gt;-rwxrwxrwx   1 sybase     sybase         832 Nov 14  2000 .cshrc&lt;BR /&gt;-rwxrwxrwx   1 sybase     sybase         347 Nov 14  2000 .exrc&lt;BR /&gt;-rwxrwxrwx   1 sybase     sybase         334 Nov 14  2000 .login&lt;BR /&gt;-rw-rw-rw-   1 sybase     sybase        1088 Sep 11 10:39 .profileOLD&lt;BR /&gt;-rwxrwxrwx   1 sybase     sybase        4064 Sep 11 10:47 .sh_history&lt;BR /&gt;drwxrwxrwx   3 sybase     sybase          96 Sep  5 17:26 ASE-12_0&lt;BR /&gt;drwxrwxrwx   3 sybase     sybase          96 Sep  5 17:28 FTS-12_0&lt;BR /&gt;drwxrwxrwx   4 sybase     sybase          96 Sep  5 17:28 OCS-12_0&lt;BR /&gt;drwxrwxrwx   3 sybase     sybase          96 Sep  5 17:29 SQLRemote&lt;BR /&gt;drwxrwxrwx   3 sybase     sybase          96 Sep  5 17:31 SYSAM-1_0&lt;BR /&gt;-rwxrwxrwx   1 sybase     sybase           0 Sep  5 18:03 js&lt;BR /&gt;drwxrwxrwx   2 sybase     sybase          96 Sep  5 17:27 lib&lt;BR /&gt;-rwxrwxrwx   1 sybase     sybase         588 Sep 11 19:12 sybase.old&lt;BR /&gt;-rwxrwxrwx   1 sybase     sybase         455 Sep 11 19:13 sybase.sh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# cd /home/sybase/&lt;BR /&gt;# ll&lt;BR /&gt;total 80&lt;BR /&gt;-rwxrwxrwx   1 sybase     sybase         832 Nov 14  2000 .cshrc&lt;BR /&gt;-rwxrwxrwx   1 sybase     sybase         347 Nov 14  2000 .exrc&lt;BR /&gt;-rwxrwxrwx   1 sybase     sybase         334 Nov 14  2000 .login&lt;BR /&gt;-rwxrwxrwx   1 sybase     sybase         529 Sep 11 19:09 .profile&lt;BR /&gt;-rw-------   1 sybase     users         1184 Sep 11 19:16 .sh_history&lt;BR /&gt;&lt;BR /&gt;$ echo $SHLIB_PATH&lt;BR /&gt;ksh: SHLIB_PATH: parameter not set&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Sep 2003 23:27:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-ksh/m-p/3069450#M904635</guid>
      <dc:creator>Jose_129</dc:creator>
      <dc:date>2003-09-11T23:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Shell ksh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-ksh/m-p/3069451#M904636</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Put a "set +u" just before you call this script in your profile. "set -u" will print if there are any undeclared variables.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 11 Sep 2003 23:31:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-ksh/m-p/3069451#M904636</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-09-11T23:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Shell ksh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-ksh/m-p/3069452#M904637</link>
      <description>By default SHLIB_PATH is not set so if you run&lt;BR /&gt;SHLIB_PATH=/sybase/ASE-12_0/lib:/sybase/FTS-12_0/lib:/sybase/OCS-12_0/lib:$SHLIB_PATH&lt;BR /&gt;coz $SHLIB_PATH is not set it says...&lt;BR /&gt;Just remove the last entry $SHLIB_PATH and keep it&lt;BR /&gt;&lt;BR /&gt;SHLIB_PATH=/sybase/ASE-12_0/lib:/sybase/FTS-12_0/lib:/sybase/OCS-12_0/lib&lt;BR /&gt;and see if it works&lt;BR /&gt;&lt;BR /&gt;Rajeev</description>
      <pubDate>Thu, 11 Sep 2003 23:43:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-ksh/m-p/3069452#M904637</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2003-09-11T23:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Shell ksh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-ksh/m-p/3069453#M904638</link>
      <description>To fix your problem you have to source the script so it sets the variables in your current environment.  If you simply call the script, it will set it for the child process and when the child exits, the variable definition is gone.&lt;BR /&gt;&lt;BR /&gt;Instead of:&lt;BR /&gt;&lt;BR /&gt;# ./sybase.sh&lt;BR /&gt;&lt;BR /&gt;try:&lt;BR /&gt;&lt;BR /&gt;# . ./sybase.sh   &amp;lt;&amp;lt;&amp;lt; Note the dot space&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also the permissions on those files are not very secure.  Once you reslve the issue, make sure you take the extra step to secure the permissions on all the files in the directory.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Tim.</description>
      <pubDate>Thu, 11 Sep 2003 23:43:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-ksh/m-p/3069453#M904638</guid>
      <dc:creator>Tim Adamson_1</dc:creator>
      <dc:date>2003-09-11T23:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Shell ksh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-ksh/m-p/3069454#M904639</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Tim is right. I didn't try to download your profile as it is in zip format so I thought u had it correctly. If you are simply calling it like /home/sybase/sybase.sh, then those variables won't survive for the parent shell unless you source in the script as ". ./home/sybase/sybase.sh".&lt;BR /&gt;&lt;BR /&gt;By the way you have to unset "set -u" too otherwise, it may throw errors.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 11 Sep 2003 23:48:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-ksh/m-p/3069454#M904639</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-09-11T23:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Shell ksh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-ksh/m-p/3069455#M904640</link>
      <description>A variable of scripts sybase.sh is defined:&lt;BR /&gt;SHLIB_PATH=/sybase/ASE-12_0/lib:/sybase/FTS-12_0/lib:/sybase/OCS-12_0/lib:$SHLIB&lt;BR /&gt;_PATH&lt;BR /&gt;&lt;BR /&gt;I execute the command:&lt;BR /&gt;$ echo $SHLIB_PATH&lt;BR /&gt;/sybase/ASE-12_0/lib:/sybase/FTS-12_0/lib:/sybase/OCS-12_0/lib:&lt;BR /&gt;&lt;BR /&gt;This good that obtains this result, Both points this good?</description>
      <pubDate>Fri, 12 Sep 2003 00:07:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-ksh/m-p/3069455#M904640</guid>
      <dc:creator>Jose_129</dc:creator>
      <dc:date>2003-09-12T00:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Shell ksh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-ksh/m-p/3069456#M904641</link>
      <description>Hi Jose,&lt;BR /&gt;&lt;BR /&gt;Put "set +u" at the beginning of your sybase.sh script. It inherits "set -u" from your .profile and throws out error.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 12 Sep 2003 01:16:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-ksh/m-p/3069456#M904641</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-09-12T01:16:49Z</dc:date>
    </item>
  </channel>
</rss>

