- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- setenv: not found:
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 01:14 AM
02-18-2002 01:14 AM
/home/user/.kshrc[23] : setenv : not found:
Any suggestion?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 01:17 AM
02-18-2002 01:17 AM
Re: setenv: not found:
.kshrc is executed by ksh. So you should use ksh syntax
#export VAR=bla/bla/bla
instead of csh
#setenv VAR /bla/bla/bla
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 01:18 AM
02-18-2002 01:18 AM
Re: setenv: not found:
ksh uses export. It does not use setenv. To find out the currently running shell, execute:
# echo $SHELL
In your .kshrc, replace all the lines using setenv with export, and add the = (equal) signs eg.
Change:
setenv ORACLE_HOME /u1
to:
export ORACLE_HOME=/u1
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 02:41 AM
02-18-2002 02:41 AM
Re: setenv: not found:
var=value ; export var
or
export var=value
is the correct way. You used C- shell- syntax which is not understandable for kornshell.
You can also do command- substituting in kornshell:
var=$(command_to_execute)
or
var=`command_to_execute` # use backticks
Allways stay on the brigth side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 05:01 AM
02-18-2002 05:01 AM
Re: setenv: not found:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 05:04 AM
02-18-2002 05:04 AM
Re: setenv: not found:
Thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 05:16 AM
02-18-2002 05:16 AM
Re: setenv: not found:
To try it out, use
#csh [script you are trying to execute now]
Hope this helps,
Tom Geudens
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 05:55 AM
02-18-2002 05:55 AM
Re: setenv: not found:
Can you attach your .kshrc file
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 05:58 AM
02-18-2002 05:58 AM
Re: setenv: not found:
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.
You can change the loginshell with the chsh-command or by editing the /etc/passwd- file and then logging out and relogin the user.
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 06:00 AM
02-18-2002 06:00 AM
Re: setenv: not found:
I am also in a SAP environment.
We have always used the csh environment for the oraSID user.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 06:08 AM
02-18-2002 06:08 AM
Re: setenv: not found:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 06:21 AM
02-18-2002 06:21 AM
Re: setenv: not found:
the error doesn't occur in your .kshrc file. So you have to post the following files to let us find it there:
--> .dbenv_.sh or .dbenv_`hostname`.sh
--> .customer.sh
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 06:43 AM
02-18-2002 06:43 AM
Re: setenv: not found:
I've replaced the 'real hostname' with 'hostname'.
I haven't found the file .customer.sh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2002 07:01 AM
02-18-2002 07:01 AM
Re: setenv: not found:
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:
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!
And the files you just attached use definitely csh- syntax, which is not compatible to a ksh.
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...
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2002 01:59 AM
02-19-2002 01:59 AM
Re: setenv: not found:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2002 02:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2002 02:33 AM
02-19-2002 02:33 AM
Re: setenv: not found:
the only thing you now have to do is to find all "setenv- commands" and to replace them with
export var=value
This should fix your problems!
Allways stay on the bright side of life!
Peter