Ok I'm always learning something here and there and came across an interesting command, "wall".
While looking at what apcupsd would do when loss of power I see that it calls "wall" to send a message. I could add code to /etc/apcupsd/apccontrol to also email me but now I'm not going to rest till I get "wall" to also send an email to me. Since anything sent to "wall" on that server I would want to know.
I tried a bit of googling already but I'm not finding much more than what I already know about it.
If I could just figure out how to run a script from messages sent to wall that would be nice.
I guess I could alway wrap the real wall with a script I put together but that would be last resort. I'd really like to know if there is a clean way.
I'd also like wall to pop up a message on my xfce desktop also.
Reading this now
Hoping to find the answer
thought of idea while reading ssh localhost maybe a way... continuing reading...
ahh they where unsuccessful but my ssh loop may work give me a bit and I may have solved a long mistery.
so I have screen installed and I setup passwordless ssh
I start a screen and "ssh localhost | tee ssh_loop.txt" detach from screen via ctrl+a d and wala I can log wall messages. I'll see if I can figure out how to start this automatically but at least I am further along then phooky got.