LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 01-30-2009, 12:34 AM   #1
yogesh_bansal
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
Question How to print a message from kernel module to terminal console or tty console


Hi friends,

I am newbie to Linux. I have written a small kernel module. In the module, I am just printing few string. the module is working fine. But the string are getting printing in /var/log/message file. I want to print the kernel module message on the terminal console instead of /var/log/message.

Can anybody guide me on this?
thanks
Yogesh
 
Old 01-31-2009, 09:28 AM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043

Rep: Reputation: 83
I think 2 is Standard Error and 1 is Standard out or terminal. You might be able to output message like 2>&1
 
Old 02-27-2009, 09:10 AM   #3
uj_san
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
@jstephens84 : hello sir... i am also facing the same prob... but i couldnt understand ur solution... can u pls be more clear???
 
  


Reply


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
Redirect SSH i/o to tty console Ryan100 Linux - General 2 05-03-2011 09:46 PM
Can not login as any user in TTY console suhas! Linux - Newbie 12 07-05-2008 05:14 AM
Return message to particular terminal console? lewkh Linux - Software 1 04-28-2005 05:01 PM
kernel parameter is init=/bin/sh , how to start the second tty console? jiawj Slackware 2 04-22-2005 02:10 AM
more then 12 tty /console ... apenguinlinux Debian 4 02-21-2005 09:56 PM


All times are GMT -5. The time now is 02:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration