home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!hpscit.sc.hp.com!cupnews0.cup.hp.com!pdg
- From: pdg@cup.hp.com (Paul Gootherts)
- Subject: Re: How to exclude the copywrite notice@login
- Sender: news@cup.hp.com (News Admin)
- Message-ID: <C1FCD5.Kws@cup.hp.com>
- Date: Mon, 25 Jan 1993 19:19:53 GMT
- References: <1jq4jnINN4qu@ope001.iao.ford.com>
- Organization: Hewlett-Packard
- X-Newsreader: TIN [version 1.1.8 PL6]
- Lines: 16
-
- This is what I have in my /etc/profile:
-
- NUMLOGINS=`/etc/last | grep $LOGNAME | wc -l`
- if [ $NUMLOGINS -lt 2 ]
- then
- cat /etc/copyright
- fi
-
- This prints the copyright notice the first time each user logs in, but
- not after that. (Actually, each user will get the copyright on their
- first login after each time the /etc/wtmp file is pruned, but that
- needn't be often.)
-
- --
-
- Paul Gootherts, pdg@cup.hp.com
-