Red Hat General - korn and profile

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat General > January 2004 > korn and profile





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author korn and profile
Jane O

2004-01-23, 6: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


Nandagopal Nair

2004-01-23, 6: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


Nandagopal Nair

2004-01-23, 6: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


Nandagopal Nair

2004-01-23, 6: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


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com