home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.solaris:444 comp.unix.shell:5196
- Newsgroups: comp.unix.solaris,comp.unix.shell
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!gatech!concert!uvaarpa!cv3.cv.nrao.edu!cv3.cv.nrao.edu!pmurphy
- From: pmurphy@nrao.edu (Pat Murphy)
- Subject: Re: *AGAIN* CSH - Execute `target' .cshrc with `su'
- In-Reply-To: Ninane@fynu.ucl.ac.be's message of Wed, 30 Dec 1992 11: 17:57 GMT
- Message-ID: <PMURPHY.92Dec30153150@orangutan.cv.nrao.edu>
- Sender: news@nrao.edu
- Organization: National Radio Astronomy Observatory
- References: <1992Dec30.111757.5822@info.ucl.ac.be>
- Date: Wed, 30 Dec 1992 20:31:50 GMT
- Lines: 29
-
- In article <1992Dec30.111757.5822@info.ucl.ac.be>
- Ninane@fynu.ucl.ac.be (Alain Ninane - FYNU) writes:
-
- I received a bunch of responses telling me to execute:
- su - otherUser (i.e. with the `-' option)
-
- This is, to my sense, not satisfactory (i.e. BSD like). With the `-'
- option, su behaves like login, i.e. executes also the .login file;
- you are also moved to the otherUser's home directory. I would prefer
- an su which does not execute the .login file and stays where you are ...
-
- Probably not a very good alternative, but have you considered:
-
- rsh localhost csh
-
- This should give you a c-shell on your local machine without executing
- the .login. I think. Caveat: I haven't tried this on Solaris 2.x yet
- (we won't have it installed until Feb. at least) but it (or the
- "remsh" variant on some OS's) seems to work for me.
-
- - Pat
- --
- ==========================================================================
- | Patrick P. Murphy, Ph.D. Scientific Programming Analyst |
- | National Radio Astronomy Observatory Net: pmurphy@nrao.edu |
- | 520 Edgemont Road Phone: (804) 296-0372 |
- | Charlottesville, VA 22903-2475 VoiceMail: (804) 980-5889 |
- | "I don't believe in the no-win scenario" --- James T. Kirk |
- ==========================================================================
-