home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / solaris / 444 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  2.0 KB

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