<?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: setenv: not found: in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666428#M49697</link>
    <description>Hi, you are using a wrong syntax for the kornshell:&lt;BR /&gt;&lt;BR /&gt;var=value ; export var&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;export var=value&lt;BR /&gt;&lt;BR /&gt;is the correct way. You used C- shell- syntax which is not understandable for kornshell.&lt;BR /&gt;&lt;BR /&gt;You can also do command- substituting in kornshell:&lt;BR /&gt;&lt;BR /&gt;var=$(command_to_execute)&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;var=`command_to_execute` # use backticks&lt;BR /&gt;&lt;BR /&gt;Allways stay on the brigth side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
    <pubDate>Mon, 18 Feb 2002 10:41:01 GMT</pubDate>
    <dc:creator>Peter Kloetgen</dc:creator>
    <dc:date>2002-02-18T10:41:01Z</dc:date>
    <item>
      <title>setenv: not found:</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666425#M49694</link>
      <description>When I try to start the sapdba tool the system returns this message:&lt;BR /&gt;/home/user/.kshrc[23] : setenv : not found:&lt;BR /&gt;&lt;BR /&gt;Any suggestion?</description>
      <pubDate>Mon, 18 Feb 2002 09:14:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666425#M49694</guid>
      <dc:creator>krizevac</dc:creator>
      <dc:date>2002-02-18T09:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: setenv: not found:</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666426#M49695</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;.kshrc is executed by ksh. So you should use ksh syntax &lt;BR /&gt;#export VAR=bla/bla/bla&lt;BR /&gt;instead of csh &lt;BR /&gt;#setenv VAR /bla/bla/bla</description>
      <pubDate>Mon, 18 Feb 2002 09:17:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666426#M49695</guid>
      <dc:creator>Andrei Petrov</dc:creator>
      <dc:date>2002-02-18T09:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: setenv: not found:</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666427#M49696</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;ksh uses export. It does not use setenv. To find out the currently running shell, execute:&lt;BR /&gt;&lt;BR /&gt;# echo $SHELL&lt;BR /&gt;&lt;BR /&gt;In your .kshrc, replace all the lines using setenv with export, and add the = (equal) signs eg.&lt;BR /&gt;&lt;BR /&gt;Change:&lt;BR /&gt;&lt;BR /&gt;setenv ORACLE_HOME /u1&lt;BR /&gt;&lt;BR /&gt;to:&lt;BR /&gt;&lt;BR /&gt;export ORACLE_HOME=/u1&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Mon, 18 Feb 2002 09:18:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666427#M49696</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-02-18T09:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: setenv: not found:</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666428#M49697</link>
      <description>Hi, you are using a wrong syntax for the kornshell:&lt;BR /&gt;&lt;BR /&gt;var=value ; export var&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;export var=value&lt;BR /&gt;&lt;BR /&gt;is the correct way. You used C- shell- syntax which is not understandable for kornshell.&lt;BR /&gt;&lt;BR /&gt;You can also do command- substituting in kornshell:&lt;BR /&gt;&lt;BR /&gt;var=$(command_to_execute)&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;var=`command_to_execute` # use backticks&lt;BR /&gt;&lt;BR /&gt;Allways stay on the brigth side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Mon, 18 Feb 2002 10:41:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666428#M49697</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-02-18T10:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: setenv: not found:</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666429#M49698</link>
      <description>maybe coping your .kshrc to .cshrc and changing your users default shell to csh will be a better solution for you. It all depends on the rest of the scripts, if any the user will use. I have seen some environments where the majority of the scripts for an application are written in the csh 'c' shell. If they are set-up the user to have a default csh cell or you may have to change all the scripts that are written in csh to ksh. Or you will have to make sure that the person that wrote the script setup it up correctly to run correctly no matter the environment of the calling shell.</description>
      <pubDate>Mon, 18 Feb 2002 13:01:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666429#M49698</guid>
      <dc:creator>Krishna Prasad</dc:creator>
      <dc:date>2002-02-18T13:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: setenv: not found:</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666430#M49699</link>
      <description>What I have to modify to use correctly the sapdba tool ?&lt;BR /&gt;&lt;BR /&gt;Thx.&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Feb 2002 13:04:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666430#M49699</guid>
      <dc:creator>krizevac</dc:creator>
      <dc:date>2002-02-18T13:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: setenv: not found:</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666431#M49700</link>
      <description>Hi,&lt;BR /&gt;To try it out, use&lt;BR /&gt;#csh [script you are trying to execute now]&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Tom Geudens</description>
      <pubDate>Mon, 18 Feb 2002 13:16:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666431#M49700</guid>
      <dc:creator>Tom Geudens</dc:creator>
      <dc:date>2002-02-18T13:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: setenv: not found:</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666432#M49701</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;Can you attach your .kshrc file&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Feb 2002 13:55:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666432#M49701</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-02-18T13:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: setenv: not found:</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666433#M49702</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you have to change the way you are giving values to your needed variables like descripted in the first posting, or you have to change shells. If the /usr/bin/ksh is the login shell you have to make a /usr/bin/csh the loginshell and you have to make the entries in the $HOME/.cshrc- file. Then you can use the setenv- command to assign values to your variables. &lt;BR /&gt;&lt;BR /&gt;You can change the loginshell with the chsh-command or by editing the /etc/passwd- file and then logging out and relogin the user.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Mon, 18 Feb 2002 13:58:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666433#M49702</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-02-18T13:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: setenv: not found:</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666434#M49703</link>
      <description>I see you are using SAP.&lt;BR /&gt;&lt;BR /&gt;I am also in a SAP environment.&lt;BR /&gt;&lt;BR /&gt;We have always used the csh environment for the oraSID user. &lt;BR /&gt;&lt;BR /&gt;Please note my above post. I would keep using the csh shell for this user. The default user for this user in SAP is the csh shell. Everytime you upgrade SAP or install a new system SAP it will set the default shellback to csh. We found it much easier to keep the sidadm user and orasid user to csh.</description>
      <pubDate>Mon, 18 Feb 2002 14:00:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666434#M49703</guid>
      <dc:creator>Krishna Prasad</dc:creator>
      <dc:date>2002-02-18T14:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: setenv: not found:</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666435#M49704</link>
      <description>In attachment th .kshrc file</description>
      <pubDate>Mon, 18 Feb 2002 14:08:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666435#M49704</guid>
      <dc:creator>krizevac</dc:creator>
      <dc:date>2002-02-18T14:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: setenv: not found:</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666436#M49705</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the error doesn't occur in your .kshrc file. So you have to post the following files to let us find it there:&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; .dbenv_.sh or .dbenv_`hostname`.sh&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; .customer.sh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Mon, 18 Feb 2002 14:21:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666436#M49705</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-02-18T14:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: setenv: not found:</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666437#M49706</link>
      <description>Requested files in attachment.&lt;BR /&gt;I've replaced the 'real hostname' with 'hostname'.&lt;BR /&gt;I haven't found the  file .customer.sh.</description>
      <pubDate>Mon, 18 Feb 2002 14:43:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666437#M49706</guid>
      <dc:creator>krizevac</dc:creator>
      <dc:date>2002-02-18T14:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: setenv: not found:</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666438#M49707</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;sorry, I am not able to read your attachment correctly, but I found some sequences where a cshi- shell syntax is needed. So I agree with the others:&lt;BR /&gt;&lt;BR /&gt;It is much more easy to change the shell for the user(s) which need to source the files in your last attachments, than to make a completely new script which uses ksh- syntax!&lt;BR /&gt;And the files you just attached use definitely csh- syntax, which is not compatible to a ksh.&lt;BR /&gt;&lt;BR /&gt;So please change the shell from ksh to csh to avoid the shown mistakes. If you could post the attachment in the same format than the first one, perhaps i can read the complete attachment to find the errors exactly...&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Mon, 18 Feb 2002 15:01:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666438#M49707</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-02-18T15:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: setenv: not found:</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666439#M49708</link>
      <description>In attachment the requested files</description>
      <pubDate>Tue, 19 Feb 2002 09:59:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666439#M49708</guid>
      <dc:creator>krizevac</dc:creator>
      <dc:date>2002-02-19T09:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: setenv: not found:</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666440#M49709</link>
      <description>Yup, your .dbenv_hostname.sh has "setenv" calls. Replace them with "export" calls as explained. That should fix it.</description>
      <pubDate>Tue, 19 Feb 2002 10:09:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666440#M49709</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-02-19T10:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: setenv: not found:</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666441#M49710</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the only thing you now have to do is to find all "setenv- commands" and to replace them with&lt;BR /&gt;&lt;BR /&gt;export var=value&lt;BR /&gt;&lt;BR /&gt;This should fix your problems!&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Tue, 19 Feb 2002 10:33:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setenv-not-found/m-p/2666441#M49710</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-02-19T10:33:10Z</dc:date>
    </item>
  </channel>
</rss>

