Parent document is top of "comp.sys.hp.hpux FAQ"
Previous document is "7.12 How come my Korn shell login hangs?"
Next document is "7.14 How can I turn off quota checking?"

7.13 How can I avoid those annoying copyright notices on login?

The following code in /etc/profile prints the copyright notice the first
time each user logs in:

        NUMLOGINS=`/etc/last -2 $LOGNAME | wc -l`
        if [ $NUMLOGINS -lt 2 ]
        then
                cat /etc/copyright
        fi

And, for /etc/csh.login:

set NUMLOGINS=`/etc/last -2 $LOGNAME | wc -l`
if ( $NUMLOGINS<2 ) cat /etc/copyright

(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.)

(Thanks to Paul Gootherts <pdg@cup.hp.com>, Steve Dum
<steve_dum@mentorg.com> and John Pelan <J.Pelan@Queens-Belfast.ac.uk>)

Parent document is top of "comp.sys.hp.hpux FAQ"
Previous document is "7.12 How come my Korn shell login hangs?"
Next document is "7.14 How can I turn off quota checking?"