Tuesday, July 10, 2007

send message to all logged in users

here's a quick way of sending messages to all currently logged in users via their terminal.

# wall
I need to reboot this server - sysad #1

press control + d

linux makes things smooth and flexible

# wall "I need to reboot this server - sysad #1"

If you want to appear the message repeatedly until terminated

# yes "I need to reboot - sysad #1"

press control+d to kill it

Sweet combination.

# yes "I need to reboot - sysad #1" | wall

Works out right.

0 comments:

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy