home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / hp / 9447 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  2.2 KB

  1. Path: sparky!uunet!ogicse!hp-cv!hp-pcd!hpcvusn!hpcvxba.cv.hp.com!bcripe
  2. From: bcripe@hpcvxba.cv.hp.com (Brian E. Cripe)
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: ksh and HP Console?
  5. Message-ID: <1992Aug19.191008.27222@hpcvusn.cv.hp.com>
  6. Date: 19 Aug 92 19:10:08 GMT
  7. Article-I.D.: hpcvusn.1992Aug19.191008.27222
  8. References: <GHENNIGA.92Aug18125155@ampere.ampere>
  9. Sender: nobody@hpcvusn.cv.hp.com (Nobody - UID must be 99999)
  10. Organization: Hewlett-Packard Company, Corvallis, Oregon USA
  11. Lines: 39
  12. Nntp-Posting-Host: hpcvxba.cv.hp.com
  13.  
  14. |>     No flames for what might be a dumb question, but, why is it that
  15. |> when I log in to the console and then start a terminal, by clicking the 
  16. |> terminal icon under HP VUE, it doesn't appear to read my .kshrc or my
  17. |> .profile, even though it does start up in the Korn Shell? The "Console"
  18. |> terminal window reads everything OK but any subsequent terminal I start,
  19. |> whether it be by clicking the icon or manually via the hpterm executable
  20. |> fails to set my environment properly by reading these files.
  21.  
  22. A couple of things are happening here:
  23.  
  24.     - The Console action runs an hpterm window using the '-ls'
  25.       (login shell) option.  This forces ksh to read .profile.
  26.  
  27.     - I suspect your .profile contains something like "ENV=~/.kshrc"
  28.       which is what tells ksh to read your .kshrc.
  29.  
  30.     - The VUE login sequence doesn't automatically read $HOME/.profile.
  31.       (I think this behavior was inherited from the "standard" xdmcp
  32.       login stuff.)  Instead it reads $HOME/.vueprofile.  The VUE 
  33.       documentation provides some information on what is allowed in
  34.       .vueprofile and people do various tricks to link their .profile
  35.       and .vueprofile together so  that they get the right thing 
  36.       whether they login via an ASCII terminal or VUE.
  37.  
  38.     - You probably haven't made the migration from .profile to .vueprofile,
  39.       so at login you are never getting the ENV environment variable
  40.       set.
  41.  
  42.     - The standard Terminal action (i.e. the terminal button in the front
  43.       panel) doesn't use the  '-ls' option because it is overkill.  (Most
  44.       people don't want to see copyright notices and motd every time they
  45.       open a new terminal window.)
  46.  
  47. To fix this, follow the instructions in the login chapter of the VUE manual
  48. to set up your .vueprofile.
  49.  
  50.     Brian Cripe
  51.  
  52.       (for v
  53.