home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.wizards
- Path: sparky!uunet!elroy.jpl.nasa.gov!decwrl!deccrl!news.crl.dec.com!rdg.dec.com!uvo.dec.com!e2big.mko.dec.com!nntpd.lkg.dec.com!ryn.mro4.dec.com!news
- From: pjdm@chmeee.enet.dec.com (Peter Mayne)
- Subject: Re: How do I invoke a login shell.
- Message-ID: <1992Dec24.023633.1365@ryn.mro4.dec.com>
- Lines: 35
- Sender: news@ryn.mro4.dec.com (USENET News System)
- Reply-To: Peter.Mayne@cao.mts.dec.com
- Organization: Digital Equipment Corporation
- References: <34657@adm.brl.mil> <1992Dec16.010628.16046@aw2.fsl.ca.boeing.com> <BzoC13.G8r@bcstec.ca.boeing.com>
- Date: Thu, 24 Dec 1992 02:36:33 GMT
-
-
- >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.
-
- How about
-
- # ln -s /bin/csh -
- # -
-
- PJDM
- --
- Peter Mayne | My statements, not Digital's.
- Digital Equipment Corporation |
- Canberra, ACT, Australia | "AXP!": Bill the Cat
-
-