home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.wizards:4777 comp.unix.questions:13577
- Path: sparky!uunet!sun-barr!olivea!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!quads!pynq
- From: pynq@quads.uchicago.edu (George Jetson)
- Newsgroups: comp.unix.wizards,comp.unix.questions
- Subject: Passing args to login(1)
- Summary: Again, this is somewhere between c.u.q. and c.u.w.
- Message-ID: <1992Nov18.145821.4583@midway.uchicago.edu>
- Date: 18 Nov 92 14:58:21 GMT
- References: <1992Nov18.143305.2506@meaddata.com>
- Sender: news@uchinews.uchicago.edu (News System)
- Reply-To: pynq@midway.uchicago.edu
- Distribution: usa
- Organization: D. J. Dougherty & Associates
- Lines: 25
-
- 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".
-
- However, this doesn't seem to work under my current version of login
- (and version of SunOS [4.something])
-
- So, my question is: "Am I imagining things, or am I doing it wrong?"
-
- I could of course ask questions in the login script and branch
- accordingly, but it would be cleaner to be able to do it as a command
- line parameter.
-
- ************************************************************************
- I've been told to back off on the diode jokes, but I still don't
- like smileys ;-)
-
- - pynq@quads.uchicago.edu, who is still costing the net
- hundreds, if not thousands, of dollars, every time he posts -
- ************************************************************************
-