General discussion

Locked

Attractive motd (message of the day)

By simsiawching ·
I've been looking for methods to broadcast message on the system (motd-message of the day) to all users on a particular server everytime they log on (in which the message must be as stand out as possible, otherwise the message of the day will be ignored!!). The motd that I've been broadcasting all the while does not really attract users and that delays some of my work. I use vi editor to write the message and broadcast it through system file (etc/motd). Is there any ways that I can make my message very attractive. For your information, I'm using the HP-UX Operating System version 10.20 and am using posix shell.

Pls advice.

This conversation is currently closed to new comments.

17 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Attractive motd (message of the day)

by John Blackburn In reply to Attractive motd (message ...

I think you need to do something that the users will look forward to seeing. Otherwise, what ever you do will be ignored. Why don't you try including a short joke (which would have to change often enough that everyone would be looking out for it when they log in? Years ago, when we had SunOS 4.1.3, there was a command called fortune. Our users loved to read the messages that fortune produced.

Collapse -

Attractive motd (message of the day)

by simsiawching In reply to Attractive motd (message ...

Poster rated this answer

Collapse -

Attractive motd (message of the day)

by marv732 In reply to Attractive motd (message ...

I've found a lot of users will ignore it no matter what you do but we tried some escape sequences to produce highlighting or blinking - maybe that would help.

Collapse -

Attractive motd (message of the day)

by simsiawching In reply to Attractive motd (message ...

Poster rated this answer

Collapse -

Attractive motd (message of the day)

by david_totsch In reply to Attractive motd (message ...

You are very limited with /etc/motd since it is a simple cat(1) of a file. Other than providing a border and changing the appearance (very frequently), you have a couple of options: 1) you can write a shell script that uses tput(1) to leverage stand-out mode (reverse video) and blinking characters, but you will need to invoke the script from the appropriate environment file, or 2) leverage news(1) (this is desireable if you want to be able to verify that an individual user read a particular news item (the news item itself is again a character file, but .news_time in the $HOME will tell you the last time the user read articles); you will need to add a news(1) command to your environment file to notify users of news items.

Collapse -

Attractive motd (message of the day)

by simsiawching In reply to Attractive motd (message ...

Poster rated this answer

Collapse -

Attractive motd (message of the day)

by antonio.trejo In reply to Attractive motd (message ...

What about placing an image before the message using only text characters?
_ _
(_) (_) Of course, you will
/ have to let your
(_ imagination fly.
\ /
\___/

Collapse -

Attractive motd (message of the day)

by simsiawching In reply to Attractive motd (message ...

Poster rated this answer

Collapse -

Attractive motd (message of the day)

by Point Man In reply to Attractive motd (message ...

We use fortune. It's free. You will offend some people with the fortune database. However you can seed it with your own companies factoids, interesting "on this day last year such and such happened..." and clean jokes of your own. One thing we have done is make the fortune optional. We have a cronjob that creates the text file /usr/local/etc/qotd. This is displayed to all who want to see the qotd. They run 'qotd' to toggle display of the qotd on and off.

The toggle qotd script:

#!/usr/local/bin/perl
# What is the point of using perl if you don't use it!
$file = (getpwuid($<))[7]."/.qotd";
if (-e $file) {
print "Quote of the day has been turned off. \n";
unlink($file);
} else {
print "Quote of the day has been turned on.\n";
open(FILE,">>$file");
close(FILE);
}

The line to put in your system profile:

test -f $HOME/.qotd && /bin/cat -s /usr/local/etc/qotd

Have fun,

huba@uidaho.edu

Collapse -

Attractive motd (message of the day)

by simsiawching In reply to Attractive motd (message ...

Poster rated this answer

Back to Linux Forum
17 total posts (Page 1 of 2)   01 | 02   Next

Operating Systems Forums