Link to home
Start Free TrialLog in
Avatar of dkamdar
dkamdar

asked on

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,
Avatar of jharriss
jharriss

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


Avatar of dkamdar

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of stokesj56
stokesj56

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.