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

  1. Xref: sparky comp.unix.wizards:4777 comp.unix.questions:13577
  2. 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
  3. From: pynq@quads.uchicago.edu (George Jetson)
  4. Newsgroups: comp.unix.wizards,comp.unix.questions
  5. Subject: Passing args to login(1)
  6. Summary: Again, this is somewhere between c.u.q. and c.u.w.
  7. Message-ID: <1992Nov18.145821.4583@midway.uchicago.edu>
  8. Date: 18 Nov 92 14:58:21 GMT
  9. References: <1992Nov18.143305.2506@meaddata.com>
  10. Sender: news@uchinews.uchicago.edu (News System)
  11. Reply-To: pynq@midway.uchicago.edu
  12. Distribution: usa
  13. Organization: D. J. Dougherty & Associates
  14. Lines: 25
  15.  
  16. I am pretty sure that under at least some versions of Unix/login, you can
  17. pass args in along with your login-id, and that these args would then be
  18. available to your .login/.profile.  See below:
  19.  
  20.     login: pynq and green
  21.     Password: 
  22.  
  23.     Then $1 should be "and" and $2 should be "green".
  24.  
  25. However, this doesn't seem to work under my current version of login
  26. (and version of SunOS [4.something])
  27.  
  28. So, my question is: "Am I imagining things, or am I doing it wrong?"
  29.  
  30. I could of course ask questions in the login script and branch
  31. accordingly, but it would be cleaner to be able to do it as a command
  32. line parameter.
  33.  
  34. ************************************************************************
  35. I've been told to back off on the diode jokes, but I still don't
  36. like smileys ;-)
  37.  
  38.     - pynq@quads.uchicago.edu, who is still costing the net
  39.       hundreds, if not thousands, of dollars, every time he posts -
  40. ************************************************************************
  41.