Operating System - HP-UX
1753837 Members
8673 Online
108806 Solutions
New Discussion юеВ

.kshrc file not working in my unix box

 
Sreer
Valued Contributor

.kshrc file not working in my unix box

Hello,

I acreated a new user in my unix 11.11 box with nis environment.

The .ksrc file is not working and as per our policy we are not using the .profile for few users but .kshrc.

I put few alias in .kshrc but not working.
the set command is giving the data as

ENV=/home/st39410/.kshrc

and I tried export ENV=~/.kshrc

also.
few contents form the file :
aias p="pwd"
alias h="history -50"
alias rquota='quota -g rte-compo'
alias cq="cqstat &"
alias m="filemgr &"
alias xf="xftp &"
alias la="ls -la"
alias p="pwd"
alias h="history -50"
alias dws="session"


Could you pls help me urgently?

Rgds Sree


4 REPLIES 4
rariasn
Honored Contributor

Re: .kshrc file not working in my unix box

Hi Sree:

Modify shell for user:

shell --> /home/st39410/.kshrc


# cat /home/st39410/.kshrc

export alias p="pwd"
export alias h="history -50"
export alias rquota='quota -g rte-compo'
export alias cq="cqstat &"
export alias m="filemgr &"
export alias xf="xftp &"
export alias la="ls -la"
export alias p="pwd"
export alias h="history -50"
export alias dws="session"


rgs.




rariasn
Honored Contributor

Re: .kshrc file not working in my unix box

Sorry

This not work!


rgs
rariasn
Honored Contributor

Re: .kshrc file not working in my unix box

He Sree:

shell --> No modify.

# cat =/home/st39410/.kshrc

alias -x p="pwd"
alias -x h="history -50"
alias -x rquota='quota -g rte-compo'
alias -x cq="cqstat &"
alias -x m="filemgr &"
alias -x xf="xftp &"
alias -x la="ls -la"
alias -x p="pwd"
alias -x h="history -50"
alias -x dws="session"

# cd $HOME/st39410
# mv .profile .profile.old
# ln .kshrc .profile
# chown st39410:groupname .kshrc

# su - st39410

$ env
$ alias

rgs,




Sreer
Valued Contributor

Re: .kshrc file not working in my unix box

Hi All,

Thanks for all yours help
Finally the issue is closed by creating a new .profile file with the entry

export ENV=/home/st39410/.kshrc

Now the .kshrc started working well.

thanks again.

Rgds Sree