home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.wizards:4789 comp.unix.questions:13609
- Newsgroups: comp.unix.wizards,comp.unix.questions
- Path: sparky!uunet!unislc!dold
- From: dold@unislc.uucp (Clarence Dold)
- Subject: Re: Passing args to login(1)
- References: <92323.143304AASSI@CUNYVM.BITNET>
- Message-ID: <1992Nov19.032334.13541@unislc.uucp>
- Organization: Unisys Corporation SLC
- Distribution: usa
- Date: Thu, 19 Nov 1992 03:23:34 GMT
- Lines: 30
-
- From article <92323.143304AASSI@CUNYVM.BITNET>, by abraham <AASSI@CUNYVM.BITNET>:
- >> From: pynq@quads.uchicago.edu (George Jetson)
- >> Subject: Passing args to login(1)
- >> Date: Wed, 18 Nov 1992 14:58:21 GMT
- >>
- >> I am pretty sure that under at least some versions of Unix/login, you can
- >> pass args in along with your login-id, and that these args would then be
- >> available to your .login/.profile. See below:
- >>
- >> login: pynq and green
- >> Password:
- >>
- >> Then $1 should be "and" and $2 should be "green".
-
- Close. The arguments are $L0="and", $L1="green", which you should have
- noticed, when you did an "env" after login.
-
- However, I find that this isn't supported on all of the systems I tried, but
- it is on both SVR3.2 and SVR4 variants.
-
- Check your "man login" to see if it is available. My SVR4:
- " either the form xxx or xxx=yyy. Arguments without an equals
- " sign are placed in the environment as
- " Ln=xxx
- " where n is a number starting at 0 and is incremented each
-
- --
- ---
- Clarence A Dold - dold@unislc.slc.Unisys.COM
- ...pyramid!ctnews!tsmiti!dold
-