Operating System - HP-UX
1834484 Members
3686 Online
110067 Solutions
New Discussion

Re: rlogin - passing my env

 
Allan Pincus
Frequent Advisor

rlogin - passing my env

Hi,

When I telnet or rlogin to a remote machine, I lose my environment, and pickup the environment on the remote machine.

Does anyone know how to get my environment to pass across to the remote machine?
3 REPLIES 3
Uday_S_Ankolekar
Honored Contributor

Re: rlogin - passing my env


Creae .profile file same as your local machine in the home directory of remote server.

-USA..
Good Luck..
Kellogg Unix Team
Trusted Contributor

Re: rlogin - passing my env

One way will be to have your home-dir exported and NFS mounted by all servers. The other option is to manually propogate your initialization files (.profile, .login, etc.) to all of your servers.

HTH
...Manjeet
work is fun ! (my manager is standing behind me!!)
Jeff Schussele
Honored Contributor

Re: rlogin - passing my env

Hi Allan,

The easiest way to do this would be to have all the systems automount (now called autofs) the same home dir.
Set it up in the /etc/rc.config.d/nfsconf config file.
The daemon is
/usr/lib/netsvc/fs/autofs/automount
And the file to define the mounts is
/etc/auto_master

See man automount for further details.

The sticky point may be applications...you'd have to insure that ALL applications are installed AND installed the SAME way on ALL systems or you may have trouble if APP1HOME=/path/to/dir is actually /path/to/dir2 on another system OR systemA has Java2 & systemB has Java3 & so on.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!