home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / wizards / 4789 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.5 KB

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