LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Displaying a message on terminal (https://www.linuxquestions.org/questions/linux-general-1/displaying-a-message-on-terminal-276241/)

roland_andrey 01-10-2005 04:28 PM

Displaying a message on terminal
 
I am trying to write a system call which needs to print a message on terminal of every logged on user. printk writes to /var/log/messages, panic does the thing but locks the system. what should i use?

Thanks for the help

acid_kewpie 01-10-2005 04:32 PM

wall

roland_andrey 01-10-2005 04:40 PM

thank chris but is it used just like printk or do i have to include a specific header?
cauz it gave me an undefined reference error

Blinker_Fluid 01-10-2005 04:53 PM

echo whatever you want | wall

That's how I use it...

roland_andrey 01-10-2005 04:53 PM

Sorry Chris that was my foolness. I didnt make the thing clear. I am writing kernel code /usr/src/linux/kernel/user.c and that is where i wish to use the message thing.

Thanks again


All times are GMT -5. The time now is 11:07 AM.