I am facing two problems in my environment. Anyone can help on this?
Thanks in advance.
Problem 1
---------
When i login into my new unix system, only the .profile is executing.
.kshrc is not executing. But my default shell is .ksh
Any setup to be changed ?
Problem 2
----------
When i view files in vi editor, everytime only 7 lines are displaying in the bottom of the window. Every time i need to scroll down to view 24 lines for a page.
Any vi settings or terminal setup to be changed. ?
.kshrc will run if the value of the ENV environment variable is set (to .kshrc) after login - the value of ENV is checked each time ksh is run. This could be set either globally (in /etc/profile, /etc/environment, etc.) or in your own .profile.
ENV=.kshrc
export ENV
Or you could just source it in your .profile:
[ -r ~/.kshrc ] && . ~/.kshrc
(then .kshrc would run only once at login, and not for each new invocation of ksh)
Your second problem may be because of your terminal settings.
What does "stty -a" show?
Try changing the number of rows (i.e. "stty rows 40")
I manually set it as "stty rows 40". But still facing the same problem.
I am using putty. But with same putty setup in other servers, i am able to see 44 rows in a page.
Hi Scottn,
I tested with cat and pg. i am getting in full screen i.e. 44 rows are displaying in the entire screen.
I tested with tail -f <pgm name>, last 10 lines are displaying and
i tested with tail -40 <pgm name>, this is also displaying 40 lines in the unix promt
Only vi, its displaying first 7 lines. Everytime i have to scroll down to see 8th line.
I dont find any .exrc file in my home directory.
This is new AIX Unix machine.
First a moderative hint: you should open a separate thread for different problems, as this will it make easier to search for a specific problem for the future user with a similar (or even the same) problem. Thanks for your consideration.
From what you describe your terminal type is definitely at fault. Either your putty is not configured to act like a vt100 terminal (don't know putty all too well, being blessed with a Unix system to work on) or your termcap database entries for the vt100 are crap. As you said the system is a freshly installed AIX system i suppose the former to be the case.
To make sure the usual terminal definitions are correctly installed issue the following command. Output should be more or less the same as mine (taken from an AIX 5.3 system at ML 09):