I was wondering if there is a way to make screen display a message to a user when they attach to a screen session? For instance, if it is preferred that a user does not use a shared screen session for their personal activities "Please do not use this session for personal activities" could be displayed when the user attaches to the screen. I have tried putting an echo command in my screenrc file, but it did not result in anything being displayed (see below).
Thanks for your help, it is much appreciated!
Well, that's not the way
echo
works, but there are at least two ways to show mot-style notifications under screen:or alternatively