home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / hp / 15284 < prev    next >
Encoding:
Text File  |  1993-01-25  |  857 b   |  29 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!hpscit.sc.hp.com!cupnews0.cup.hp.com!pdg
  3. From: pdg@cup.hp.com (Paul Gootherts)
  4. Subject: Re: How to exclude the copywrite notice@login
  5. Sender: news@cup.hp.com (News Admin)
  6. Message-ID: <C1FCD5.Kws@cup.hp.com>
  7. Date: Mon, 25 Jan 1993 19:19:53 GMT
  8. References: <1jq4jnINN4qu@ope001.iao.ford.com>
  9. Organization: Hewlett-Packard
  10. X-Newsreader: TIN [version 1.1.8 PL6]
  11. Lines: 16
  12.  
  13. This is what I have in my /etc/profile:
  14.  
  15.     NUMLOGINS=`/etc/last | grep $LOGNAME | wc -l`
  16.     if [ $NUMLOGINS -lt 2 ]
  17.     then
  18.         cat /etc/copyright
  19.     fi
  20.  
  21. This prints the copyright notice the first time each user logs in, but
  22. not after that.  (Actually, each user will get the copyright on their
  23. first login after each time the /etc/wtmp file is pruned, but that
  24. needn't be often.)
  25.  
  26. --
  27.  
  28. Paul Gootherts, pdg@cup.hp.com
  29.