home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / wizards / 5218 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.9 KB

  1. Path: sparky!uunet!dtix!relay!relay2!afterlife!adm!news
  2. From: 92700217@vax1.dcu.ie (Ciaran Treanor)
  3. Newsgroups: comp.unix.wizards
  4. Subject: How do I invoke a login shell.
  5. Message-ID: <34657@adm.brl.mil>
  6. Date: 14 Dec 92 14:34:09 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 31
  9.  
  10. Hi Wizards,
  11.         I know this is probably not the right place to ask this question but
  12.         I need an answer in a hurry. I want to "exec" /bin/csh as a login
  13.         shell from a script file. In the man page for "csh" it says the
  14.         following:
  15.  
  16.         "If the shell is invoked with a name that starts with '-', as when
  17.         started by login(1) the shell runs as a login shell. In this case,
  18.         after executing commands from the .cshrc file, the shell executes
  19.         commands from the .login file in your home directory."
  20.  
  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.  
  26.         I'm working on a Sparc 10 running SunOS 4.1.3.
  27.  
  28. Thanks in advance and apologies if this is a really stupid question!
  29.  
  30. Ciaran.
  31.  
  32. +------------------------+-----------------------------------------------------+
  33. | Ciaran Treanor         | In the sleepy west of the woody east,  | P          |
  34. | Electronic Engineering | is a valley full, full o' pioneer,     |  i         |
  35. | Dublin City University | we're not just kids, to say the least, |   x        |
  36. | Glasnevin              | we got ideas to us that's dear.        |    i       |
  37. | Ireland                |             [UMass]  Black Francis (!) |     e      |
  38. +------------------------+------------------------+---------------+------s---- +
  39. | Voice: +353-1-7045758  | Fax: +353-1-7045508    | E-Mail: 92700217@dcu.ie    |
  40. +------------------------+------------------------+----------------------------+
  41.