How to run .kshrc

Hi,

I want to run a .kshrc file everytime i login.
I have copied the .kshrc file from my colleague's account.
But the scripts she has written are not executing in my account.
like at the prompt is still remaining
xys%
instead of
myid@hostname in pwd%

I just thought copying the .kshrc file will do it as on login, it is executed.

Do i need to do something else too?

This is Solaris OS. i am connecting remotely from Windows NT using Exceed.

Thanks,
dkamdarAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jharrissCommented:
What is your default shell?  It would have to be ksh in order for the .kshrc to process.  You can find out what shell you are running once you are logged in by executing the command, whodo.  You should see output like the following.
[root@server1 /]# whodo
Fri Nov 12 10:17:05 CST 2004
server1
 
pts/1        user     10:16
    pts/1          934    0:00 sh


0
dkamdarAuthor Commented:
Hi,

it is korn shell thats why i was modifying .kshrc
I found out what the problem was ... i had to export PS1 variable instead of prompt ...

Thanks Anyways
0
stokesj56Commented:
You need to add the environment setting ENV to your .profile. This setting needs to point to your .kshrc (or whatever you name it). I.E:

  ENV=$HOME/.kshrc
  export ENV

After adding these line to your .profile logout and back in again. It should pick up the .kshrc now.

If you change something in the .kshrc and want to source the new file then from your command prompt in your home directory enter ". .kshrc". This will read in and execute the new settings.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
stokesj56Commented:
I appreciate the points. But, why only a grade of C? Was there something I didn't explain well enough? If so let me know what and I will further explain.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Operating Systems

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.