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: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
|
Comment about this article, ask questions, or add new information about this topic: