Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


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

Rep: Reputation: 0
Displaying message on FC1

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:34 PM   #2
Registered: Jul 2004
Location: Austin, Texas!
Distribution: Gentoo
Posts: 121

Rep: Reputation: 15
Actually, a simple way to do this is make a bash script with this:
echo "message" > /dev/ttys_you_want
#be sure to list the ttys in a space seperated list eg. /dev/ttyx /dev/ttya...
Old 01-10-2005, 05:05 PM   #3
LQ Newbie
Registered: Jan 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Sorry 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. Does that still works?, cauz it generated an error.

Thanks again
Old 01-10-2005, 06:50 PM   #4
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
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 a message on terminal roland_andrey Linux - General 4 01-10-2005 04:53 PM
displaying popuo message by daemon process running in runlevel 5 using xmessage kalpesh_rathod8 Programming 2 11-22-2004 03:19 AM
message, message.1 in /var/log/ can be deleted for space? phpsharma Linux - Newbie 4 11-17-2004 12:23 PM
Error message "Nautilus has no installed viewer capable of displaying" oracle_37 Linux - Software 1 08-02-2003 01:27 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:38 AM.

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