Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cwjcc!hal!nic.MR.NET!csd4.milw.wisc.edu!uwmcsd1!marque!uunet!mcvax!ukc!reading!riddle!andrew From: andrew@riddle.UUCP (Andrew Beattie) Newsgroups: comp.unix.wizards Subject: Re: rsh environment Keywords: no /etc/profile sourced? Message-ID: <955@riddle.UUCP> Date: 28 Dec 88 10:15:48 GMT References: <1276@uwbull.uwbln.UUCP> Reply-To: andrew@riddle.UUCP (Andrew Beattie) Organization: Sphinx Ltd., Maidenhead, England Lines: 23 In article <1276@uwbull.uwbln.UUCP> ckl@uwbln.UUCP (Christoph Kuenkel) writes: >Is there any way to alter the default environment setting used when >rsh (the bsd remote shell) executes commands? > >our rsh (bull sps9 with spix os) sets up an default environment > > HOME= > LOGNAME= > PATH=.:/bin:/usr/bin > SHELL=/bin/sh > TERM= > >any hints? DID YOU BSD PEOPLE HERE THAT ??? What Christoph is trying to say is that we want an /etc/rshrc and $HOME/.rshrc which is run every time we grab a remote shell so that we can set up our environment exactly as we want it. On our Xenix boxes with Excelan the remote shell has $SHELL set up from passwd so the fix is to use csh and set up the environment in $HOME/.cshrc (I think that is the right file, I would rather suffer the inconvenience of setting up my environment each time than have to use csh)