home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!relay!relay2!afterlife!adm!news
- From: 92700217@vax1.dcu.ie (Ciaran Treanor)
- Newsgroups: comp.unix.wizards
- Subject: How do I invoke a login shell.
- Message-ID: <34657@adm.brl.mil>
- Date: 14 Dec 92 14:34:09 GMT
- Sender: news@adm.brl.mil
- Lines: 31
-
- Hi Wizards,
- I know this is probably not the right place to ask this question but
- I need an answer in a hurry. I want to "exec" /bin/csh as a login
- shell from a script file. In the man page for "csh" it says the
- following:
-
- "If the shell is invoked with a name that starts with '-', as when
- started by login(1) the shell runs as a login shell. In this case,
- after executing commands from the .cshrc file, the shell executes
- commands from the .login file in your home directory."
-
- How do you invoke /bin/csh with a name that starts with a '-'?
- Do you mess around with argv[0], if so how do you do that in a
- shell script?
- Is there any other of invoking a login /bin/csh?
-
- I'm working on a Sparc 10 running SunOS 4.1.3.
-
- Thanks in advance and apologies if this is a really stupid question!
-
- Ciaran.
-
- +------------------------+-----------------------------------------------------+
- | Ciaran Treanor | In the sleepy west of the woody east, | P |
- | Electronic Engineering | is a valley full, full o' pioneer, | i |
- | Dublin City University | we're not just kids, to say the least, | x |
- | Glasnevin | we got ideas to us that's dear. | i |
- | Ireland | [UMass] Black Francis (!) | e |
- +------------------------+------------------------+---------------+------s---- +
- | Voice: +353-1-7045758 | Fax: +353-1-7045508 | E-Mail: 92700217@dcu.ie |
- +------------------------+------------------------+----------------------------+
-