home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.wizards
- Path: sparky!uunet!bcstec!aw108!aw45!ten0772
- From: ten0772@aw2.fsl.ca.boeing.com (Timothy E. Neto )
- Subject: Re: How do I invoke a login shell.
- Message-ID: <1992Dec16.010628.16046@aw2.fsl.ca.boeing.com>
- Organization: fsl
- References: <34657@adm.brl.mil>
- Date: Wed, 16 Dec 1992 01:06:28 GMT
- Lines: 41
-
- From article <34657@adm.brl.mil>, by 92700217@vax1.dcu.ie (Ciaran Treanor):
- > 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 |
- > +------------------------+------------------------+----------------------------+
-
- Try doing a man on 'csh'. You're looking for the command 'start_csh'
-
-
- --
- Indecision is the key to | Timothy E. Neto (206) 237-5527 1 000
- flexibility, & you can't | Of B & T's Gadget & Widget Works 1 0. .0
- E-Mail God. | Flight Systems Lab, Boeing Comm. Aircraft 1 0 _ 0
- My ideas not Boeing's | Internet: ten0772@aw2.fsl.ca.boeing.com 1 000
-