korn and profile
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat General > korn and profile




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    korn and profile  
Jane O


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 11:52 PM

RH8

I want to use ksh as default shell

But can not figure out how to set env variables ---- but .profile does not
seem to work.
I have placed all env varaibles in /etc/env

How can I make my own .profile work ?
I want to set my own alias, PS1, etc like in any ksh session.

Pls help thanks
jane







[ Post a follow-up to this message ]



    Re: korn and profile  
Nandagopal Nair


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 11:52 PM

Jane O wrote:
quote:
> RH8 > > I want to use ksh as default shell > > But can not figure out how to set env variables ---- but .profile does not > seem to work. > I have placed all env varaibles in /etc/env > > How can I make my own .profile work ? > I want to set my own alias, PS1, etc like in any ksh session. > > Pls help thanks > jane > >
If you haven't already swiched your shell, you can do so by using the CHange SHell program - chsh. A kornshell instance executes /etc/profile and ~/.profile only if it is a login shell ( the first character of the first argument is - or if the -l option is used ). Otherwise, it looks for an environment variable called ENV and if it is set and points to a readable file, executes it. Something like export ENV=/etc/env should work in your case. =NN




[ Post a follow-up to this message ]



    Re: korn and profile  
Nandagopal Nair


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 11:52 PM

Jane O wrote:
quote:
> RH8 > > I want to use ksh as default shell > > But can not figure out how to set env variables ---- but .profile does not > seem to work. > I have placed all env varaibles in /etc/env > > How can I make my own .profile work ? > I want to set my own alias, PS1, etc like in any ksh session. > > Pls help thanks > jane > >
If you haven't already swiched your shell, you can do so by using the CHange SHell program - chsh. A kornshell instance executes /etc/profile and ~/.profile only if it is a login shell ( the first character of the first argument is - or if the -l option is used ). Otherwise, it looks for an environment variable called ENV and if it is set and points to a readable file, executes it. Something like export ENV=/etc/env should work in your case. =NN




[ Post a follow-up to this message ]



    Re: korn and profile  
Nandagopal Nair


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 11:56 PM

Jane O wrote:
quote:
> RH8 > > I want to use ksh as default shell > > But can not figure out how to set env variables ---- but .profile does not > seem to work. > I have placed all env varaibles in /etc/env > > How can I make my own .profile work ? > I want to set my own alias, PS1, etc like in any ksh session. > > Pls help thanks > jane > >
If you haven't already swiched your shell, you can do so by using the CHange SHell program - chsh. A kornshell instance executes /etc/profile and ~/.profile only if it is a login shell ( the first character of the first argument is - or if the -l option is used ). Otherwise, it looks for an environment variable called ENV and if it is set and points to a readable file, executes it. Something like export ENV=/etc/env should work in your case. =NN




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:34 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register