Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

comp.sys.hp.hpux FAQ
Section - 8.8 How can I avoid those annoying copyright notices on login?

( Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Airports ]


Top Document: comp.sys.hp.hpux FAQ
Previous Document: 8.7 Why does my Korn shell login hang?
Next Document: 8.9 How can I turn off quota checking?
See reader questions & answers on this topic! - Help others by sharing your knowledge
The following code in /etc/profile prints the copyright notice only the
very first time a user logs in:

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

And, for /etc/csh.login:

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

Technically, 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.

User Contributions:

Comment about this article, ask questions, or add new information about this topic:

CAPTCHA




Top Document: comp.sys.hp.hpux FAQ
Previous Document: 8.7 Why does my Korn shell login hang?
Next Document: 8.9 How can I turn off quota checking?

Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
hpux.faq@gmail.com





Last Update March 27 2014 @ 02:11 PM