Operating System - HP-UX
1834518 Members
2207 Online
110068 Solutions
New Discussion

rlogin / telnet terminal settings

 
SOLVED
Go to solution
Bejoy C Alias
Respected Contributor

rlogin / telnet terminal settings

Hi gurus....

We are using oracle 7 on Hp-UX 11i in our production server .
We are having one oracle based application called ACCELL which
works fine if we telnet to the server from other clients . We are using
the terminal emulation program Netterm on our clients .
Now for some reason we want to change the setup in a way that the
clients will be logging into another server and some of them rlogin
from there to the production server , this is done by adding rlogin in
that user's .profile , so the second login will be transparent to
the end user. Now the pblm is that those users which are going through
rlogin to the production server are not able to work with the application
as the keymapping getting changed ( e.g when we press F1 it should
exit from the application , if we rlogin this key does not work ,
but this works fine if we connect to the production server through
telnet instead of rlogin ). We checked the TERM variable which is
same for after both rlogin and telnet, also set stty settings same as
that which shown after telneting. But the pblm not getting solved.

awaiting for ur responses
rgds
Bejoy
Be Always Joy ......
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: rlogin / telnet terminal settings

rlogin does not pick up the environment on the target server.

The script being run on the server thats being connected to needs to load /etc/profile and or .profile environment variables.

To see run this command.

From telnet session

env > /tmp/env.telnet

from a rlogin session

env /tmp/env/env.rlogin

compare the files, make the environments match and the problem should go away.

Oracle is very sensitive to environmental issues.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bejoy C Alias
Respected Contributor

Re: rlogin / telnet terminal settings

Hi,

I have done as SEP said , but both the enviroment is same.
I made the files as u said by first telneting and then rloging , but both the files are same only, means both the environments are same.

rgds
Bejoy
Be Always Joy ......
Tim Sanko
Trusted Contributor

Re: rlogin / telnet terminal settings

The answer is to find the appropriate termcap/terminfo entry and fix it.

Tim
Bejoy C Alias
Respected Contributor

Re: rlogin / telnet terminal settings

Hi Tim,
If i rlogin from the same server for the same user , then also the function keys are not funcitonal .
Be Always Joy ......
Amit Agarwal_1
Trusted Contributor

Re: rlogin / telnet terminal settings

Maybe you can compare the terminal that you login with. Run 'ttytype' both with telnet and rlogin session. If they are different you can make the rlogin same as telnet.
Bejoy C Alias
Respected Contributor

Re: rlogin / telnet terminal settings

hi,
for both telnet and rlogin the ttytype is vt100
Be Always Joy ......
Bejoy C Alias
Respected Contributor

Re: rlogin / telnet terminal settings

Is there any way to automate the telnet login process . I mean whether we can do some scripting or something to make a user to telnet to another server without giving any user name or passwd manually ? . After login in to a server normally , the user should connect to the other server using telnet but the second login should be invisible to the end user , he should supply the user name / passwd only for the first login ( I dont want to use rlogin as this will not work with my application ) .
Be Always Joy ......
Naveej.K.A
Honored Contributor
Solution

Re: rlogin / telnet terminal settings

Hi Bejoy,

Download expect from http://expect.nist.gov/

and use this script to automate the login

and check this thread for tips on the script
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=75149


Regards,
Naveej

practice makes a man perfect!!!
Bejoy C Alias
Respected Contributor

Re: rlogin / telnet terminal settings

Thanks Naveej...
Downloaded expect , it is working !! , so instead of rlogin i can use telnet without user interaction to keep the terminal settings working for our application which was not possible through rlogin .
Thanks to all for ur valuable replies.
Be Always Joy ......