Thursday, July 3, 2008

Geeky way to send a terminal message to a user

How to send someone a message over linux or unix

Step 1: Type who to find out what port they are on (the pts with the number is the port)
Step 2: cat >/dev/ptx/y
Step 3: type message
Step 4: press: "Ctrl + d" to end

***could also use the "write username [then optionally pts/terminal#]

1 comment:

Unknown said...

Hmm pretty cool.

While not as geeky but rather handy.

echo "Hello u smell" >> /dev/pts/0

(or pts session in use)