- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: losing $HOME definition
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
03-01-2004 08:47 AM
03-01-2004 08:47 AM
losing $HOME definition
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 08:57 AM
03-01-2004 08:57 AM
Re: losing $HOME definition
Did you move the users home directory while he/she was logged in? If so, can you have them log out and log back in? That should take care of it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 09:02 AM
03-01-2004 09:02 AM
Re: losing $HOME definition
Unless the user is modifying the HOME variable inside, it should automatically get assigned. Look at the man page of 'environ' for more information.
The user has to either manually set HOME or logoff|login to get it set (if his/her profiles are not messed up).
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 09:09 AM
03-01-2004 09:09 AM
Re: losing $HOME definition
However, in answer to your sepcific question, no there is no utility to do it (nobody seems to need it) and if you script it, it is one of the rare times that "awk" is simpler than "perl" (Until Merijn proves me wrong, of course)
$HOME=`awk -F: '$1 == "user" { print $6 }' /etc/passwd`
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 09:09 AM
03-01-2004 09:09 AM
Re: losing $HOME definition
Inside the form they are using a line like:
HOST(/apps/some_script,NO_SCREEN)
which I've come to understand will execute the script in question. According to them, none of the environment variables are set so they source the .profile in the script which includes the hardcoded $HOME.
Again, I don't know oracle so I can't really even test this.
Assuming the variable isn't set, I want to give them a way to figure it out without hardcoding it. Better still, would be to figure out why it isn't being set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 09:30 AM
03-01-2004 09:30 AM
Re: losing $HOME definition
I don't know about oracle forms either. All I know is this from environ man page.
//An array of strings called the environment is made available by
exec(2) when a process begins. By convention, these strings have the
form name=value. The following names are used by various commands
(listed in alphabetical order)://
Having said that, I would suggest them to run
HOST(/usr/bin/env,NO_SCREEN) if possible and see if the output has HOME in it. A child process by default will inherit the environment of the parent process.
I had seen people unknowingly using HOME as their private variables.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 09:43 AM
03-01-2004 09:43 AM
Re: losing $HOME definition
TOOL_ENV.GETVAR('TERM', :myblock.myitem);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 09:43 AM
03-01-2004 09:43 AM
Re: losing $HOME definition
TOOL_ENV.GETVAR('HOME', :myblock.myitem);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 11:21 AM
03-01-2004 11:21 AM
Re: losing $HOME definition
HOME=$PWD
fi
I don't have my reference but that is supposed to be if $HOME is null.
Oracle Forms could care less what the home directory is. I've got a few years running it and I think there is a communications issue here.
Are there forms in users home directories?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 02:33 PM
03-01-2004 02:33 PM
Re: losing $HOME definition
If the $HOME value is needed, it should be extracted directly from the passwd file using cut as in:
grep ^$USERNAME: /etc/passwd | cut -d: -f
Now the above is a shell command and should replace the use of .profile to set $HOME. The 'loss' of $HOME is not a loss at all, it is the result of some funky or convoluted way of running the process(es). It reminds me a little of the default behavior for xterm, hpterm and dtterm (no profiles are run).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2004 03:37 AM
03-26-2004 03:37 AM
Re: losing $HOME definition
Oracle itself doesn't care about $HOME so it doesn't worry about making it avaialable to subprocesses. Our development staff is writting some custom stuff that needs to have $HOME of the user "oracle". Our fix is to make $HOME for the oracle user and $ORACLE_HOME the same place. (it isn't currently) Now they can just set $HOME to $ORACLE_HOME and no more problems.