LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-10-2005, 04:28 PM   #1
roland_andrey
LQ Newbie
 
Registered: Jan 2005
Posts: 5

Rep: Reputation: 0
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
 
Old 01-10-2005, 04:32 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
wall
 
Old 01-10-2005, 04:40 PM   #3
roland_andrey
LQ Newbie
 
Registered: Jan 2005
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 01-10-2005, 04:53 PM   #4
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
echo whatever you want | wall

That's how I use it...
 
Old 01-10-2005, 04:53 PM   #5
roland_andrey
LQ Newbie
 
Registered: Jan 2005
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying a message when I start a new konsole. kponenation Slackware 6 08-13-2005 11:57 PM
Displaying message on FC1 roland_andrey Linux - Newbie 3 01-10-2005 06:50 PM
displaying popuo message by daemon process running in runlevel 5 using xmessage kalpesh_rathod8 Programming 2 11-22-2004 03:19 AM
JAVA:Problems in Displaying Data to Terminal.. nedian123 Programming 1 07-06-2004 10:13 PM
displaying terminal output on root window? mporter Slackware 2 03-21-2003 01:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration