Mesg y on a single console

Extracted from Web submission
Tip provided by Karellen
Mesg y might be annoying blinking on all your consoles. Here's what
i have in my ~/.profile:

mesg y
mecount=$[$(who -T | grep $LOGNAME | grep + | wc -l)]
if [ "$mecount" !=  "1" ]; then
  mesg n
fi

or shorter:

mesg y
[ `who -T |grep "$LOGNAME\ *+" |wc -l` -ge 1 ] && mesg n


Follow-up :
| Previous | Next | Index of category | Main Index | Submit |


Appears in section(s) : configuration screen shell
Tip recorded : 07-12-1998 20:19:23
HTML page last changed : 27-07-1999 20:10:57