LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Console message - how do I create one? (https://www.linuxquestions.org/questions/linux-newbie-8/console-message-how-do-i-create-one-80085/)

davee 08-08-2003 03:10 AM

Console message - how do I create one?
 
I've got a crontab job which will should alert me if a process fails.

How can I create a stonking great console message that will flash up in front of all other windows on my workstation when things go belly up?

Dave

MasterC 08-08-2003 03:50 AM

You are probably looking for something like 'wall' check out 'man wall' for more info. I'm not all that familiar with it otherwise I'd give you an example ;)

Cool

davee 08-08-2003 04:23 AM

wall seems to do the trick.

When an error occurs, I pipe the error message to a file, then call wall <filename> as root. This broadcasts to all users on the box (i.e. me!)

Thanks for that.

Dave

MasterC 08-08-2003 04:32 AM

You're welcome, glad it works ;)

Cool


All times are GMT -5. The time now is 02:05 AM.