Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Printing a Message to All Consoles

by Nitrox (Chaplain)
on Mar 05, 2003 at 18:52 UTC ( [id://240661]=note: print w/replies, xml ) Need Help??


in reply to Printing a Message to All Consoles

One way to do it would be:
#! /usr/bin/perl -w use strict; open MSG, "|/usr/bin/wall" or die "Failed to open pipe to wall"; print MSG "This is message 1.\n"; print MSG "This is message 2.\n"; close MSG;

Also check the 'wall' man page for more info.

-Nitrox

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://240661]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-22 23:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found