go ahead... be a heretic | |
PerlMonks |
Printing a Message to All Consolesby Anonymous Monk |
on Mar 05, 2003 at 18:29 UTC ( [id://240649]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Good Day Monks, I'm writing a script that checks for certain events, and sends a notification when they occur. The user can set a couple of different options as to how he receives the notification (for instance, he may choose to get his notification in the form of an email). I'd like to have one of the notification options print out a message to all consoles currently connected to the system (which, if it makes a difference, is running Red Hat 8). This would be much the same as what happens when you type "shutdown -h now"....a message informing you that the system is going down appears on all consoles. Can anyone tell me how this might be accomplished? Thanks!
Back to
Seekers of Perl Wisdom
|
|