tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: msgs on DU?  **UPDATED**
@ 1997-07-02 18:23 Ellen Davis
  0 siblings, 0 replies; only message in thread
From: Ellen Davis @ 1997-07-02 18:23 UTC (permalink / raw)
  To: tru64-unix-managers



Looks like I posted too soon.  I received some more messages with good
information which I thought I would pass on.

Larry Griffith wrote:

	I send messages to my users by inserting the following command

	news | more

into the /etc/profile and /etc/csh.login files (which are system-wide scripts
executed at login).  The news command prints any files in /usr/news that are
newer than ~/.news_time and then touches ~/.news_time .  The effect is to
print only new messages.

	Since I have a network, I make /usr/news a symbolic link to
/usr/local/news (/usr/local being NFS-distributed to all machines).

Bob Jones wrote:

The 'news' command might do what you're looking for.  The sysadmin can put a 
message in the /usr/news directory, and the user is alerted via the following 
lines (you may prefer some variation of this) in the system-wide login script 
if there are any news items that they have not yet read:

if ( "${whoami}" == "root") then
#       Check for system news that would be new to this person.
if ( "`/usr/bin/news -s`" != "" ) then
    echo ""
    echo \*\*\* Type \"news\" to view current system news. \*\*\*
endif

The user still needs to manually type 'news', which we have found increases
the 
regretfully slim chance that the user will actually read the news item(s).
By 
default, the 'news' command (/usr/bin/news) cat's to stdout all news items
new 
to the user.  We define the following alias for news in our system-wide login 
script to make it more user-friendly:

# Display news one screenful at a time.
alias   news    "news \!* | more"

See the news(1) man page for more details.

And Phil Farrell wrote that msgs source was available via anonymous ftp
from gatekeeper.dec.com, files in dir:
	/pub/BSD/NetBSD/NetBSD-current/src/usr.bin/msgs

Thanks to all respondants!


 Ellen Davis

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-07-02 18:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-07-02 18:23 SUMMARY: msgs on DU? **UPDATED** Ellen Davis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox