Operating System - HP-UX
1819814 Members
4243 Online
109607 Solutions
New Discussion юеВ

different display behaviour of remsh and rlogin

 
Klaus  Frank
Frequent Advisor

different display behaviour of remsh and rlogin

Hallo together

I wonder why I get different results on display behaviour of a remote launched job using either rlogin or remsh.
With rlogin to the remote_host I start my application:
$ /opt/rmb/rmb8_03/bin/rmb -display my_host:0.0
the result is fine. I get a separate X-window on my host with the rmb application as expected.

But ...
doing the same only with the remsh command no separate X-window is raised but only some startup msg. comes to my hpterm.

On both hosts I have added the other's name to .rhosts. I did also $xhost + remote_host.
OS on remote_host is 10.20. My_host is either 10.20 or 11.i.

Now what have I not considered ?
Thanks for any good ideas
(points guaranteed ;-))
... we all can make it with a little help ...
2 REPLIES 2
Anil C. Sedha
Trusted Contributor

Re: different display behaviour of remsh and rlogin

Hi,

When you do a rlogin and start your application your environment profile sets up your display. I believe you have a export DISPLAY variable set in your profile for X window applications.

Now, when you run remsh your profile does not get set hence you are not getting a X window.

That's it.

Regards,
Anil
If you need to learn, now is the best opportunity
Jordan Bean
Honored Contributor

Re: different display behaviour of remsh and rlogin


Anil, I believe Klaus is specifying the display on the applications command line. So DISPLAY isn't an issue here.

However, you are correct about the environment not being set using remsh. Profiles are processed via rlogin, but not via remsh. Also, rlogin uses ttys while remsh does not. So Klaus, you may want to try this:

remsh rhost ". .profile && rmb -display $DISPLAY"

Check .profile to be sure that tty specific commands do not run by putting then within this conditional:

if [ -t 0 ]
then
# tty stuff
else
# non-tty stuff not intended for tty sessions
fi

You may want to do the same in /etc/profile and try this remsh:

remsh rhost ". /etc/profile && . .profile && rmb -display $DISPLAY"

I'll stop here and think some more.