home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / wizards / 5246 < prev    next >
Encoding:
Text File  |  1992-12-16  |  2.4 KB  |  52 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!bcstec!aw108!aw45!ten0772
  3. From: ten0772@aw2.fsl.ca.boeing.com (Timothy E. Neto )
  4. Subject: Re: How do I invoke a login shell.
  5. Message-ID: <1992Dec16.010628.16046@aw2.fsl.ca.boeing.com>
  6. Organization: fsl
  7. References: <34657@adm.brl.mil>
  8. Date: Wed, 16 Dec 1992 01:06:28 GMT
  9. Lines: 41
  10.  
  11. From article <34657@adm.brl.mil>, by 92700217@vax1.dcu.ie (Ciaran Treanor):
  12. > Hi Wizards,
  13. >         I know this is probably not the right place to ask this question but
  14. >         I need an answer in a hurry. I want to "exec" /bin/csh as a login
  15. >         shell from a script file. In the man page for "csh" it says the
  16. >         following:
  17. >         "If the shell is invoked with a name that starts with '-', as when
  18. >         started by login(1) the shell runs as a login shell. In this case,
  19. >         after executing commands from the .cshrc file, the shell executes
  20. >         commands from the .login file in your home directory."
  21. >         How do you invoke /bin/csh with a name that starts with a '-'?
  22. >         Do you mess around with argv[0], if so how do you do that in a
  23. >         shell script?
  24. >         Is there any other of invoking a login /bin/csh?
  25. >         I'm working on a Sparc 10 running SunOS 4.1.3.
  26. > Thanks in advance and apologies if this is a really stupid question!
  27. > Ciaran.
  28. > +------------------------+-----------------------------------------------------+
  29. > | Ciaran Treanor         | In the sleepy west of the woody east,  | P          |
  30. > | Electronic Engineering | is a valley full, full o' pioneer,     |  i         |
  31. > | Dublin City University | we're not just kids, to say the least, |   x        |
  32. > | Glasnevin              | we got ideas to us that's dear.        |    i       |
  33. > | Ireland                |             [UMass]  Black Francis (!) |     e      |
  34. > +------------------------+------------------------+---------------+------s---- +
  35. > | Voice: +353-1-7045758  | Fax: +353-1-7045508    | E-Mail: 92700217@dcu.ie    |
  36. > +------------------------+------------------------+----------------------------+
  37.  
  38. Try doing a man on 'csh'.  You're looking for the command 'start_csh'
  39.  
  40.  
  41. -- 
  42. Indecision is the key to | Timothy E. Neto  (206) 237-5527              1   000
  43. flexibility, & you can't | Of B & T's Gadget & Widget Works             1  0. .0
  44. E-Mail God.              | Flight Systems Lab, Boeing Comm. Aircraft    1  0 _ 0
  45. My ideas not Boeing's    | Internet: ten0772@aw2.fsl.ca.boeing.com      1   000
  46.