1827288 Members
3013 Online
109717 Solutions
New Discussion

script running problem

 
Shah Gaurang B.
Frequent Advisor

script running problem

Hello friends,

My problem is when i login through CDE prompt by user name oracle i am not able to get any path or env i.e script running problem but when i login through CLI mode by appliying command login oracle everthing working fine. so can u guide me where the problem is ? and how to solved it ?

4 REPLIES 4
Zigor Buruaga
Esteemed Contributor

Re: script running problem

Hi,

Edit the ".dtprofile" file in the user home directory and uncomment the last line:
# DTSOURCEPROFILE=true

Then login again through CDE and see if works.

Regards,
Zigor
Muthukumar_5
Honored Contributor

Re: script running problem

When you login with CLI then /etc/profile and .profile file in $HOME directory will be executed using /etc/PATH file.

You have to .dtlogin file to accept .profile file execution.

Or else set with $HOME/.dtprofile file for environment variable settings.

hth.
Easy to suggest when don't know about the problem!
Shah Gaurang B.
Frequent Advisor

Re: script running problem

hi zigor,
it's not working if i uncomment to DTSOURCE=true , due to this it not able to login through that user
Bill Hassell
Honored Contributor

Re: script running problem

You are using an Xwindows client (dtterm most likely) and the 3 clients (xterm, dtterm and hpterm) never run /etc/profile or .profile in the user's HOME directory. This is normal behavior but as you've seen, very undesirable. So, you need to insure that the machine where you are running CDE has a .Xdefaults file with .loginShell set to true. With CDE running, start a terminal window and create the .Xdefaults file like this:

echo "*loginShell:true" >> $HOME/.Xdefaults

Now, close the window and start another terminal window. Now you will see the 'normal Unix login that you see with a CLI interface. This includes running the /etc/profile as well as $HOME/.profile files.


Bill Hassell, sysadmin