LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 02-01-2006, 11:54 AM   #1
andy101
LQ Newbie
 
Registered: Nov 2005
Location: England, UK
Distribution: Ubuntu, 6.06 Daper Drake
Posts: 10

Rep: Reputation: 0
Question Logging Ndiswrapper output to a file


I am having problems with ndiswrapper. I can get it to print its debug data to the screen but it scrolls off the screen too fast to be of any use. I am trying to get it to write to a file but it won't appear in any of the logs (even used grep on every file in the logs directory). I did try to alter syslog.conf but not entirely sure what should be in it.

Ndiswrapper seems to print debug data using printk().

Thanks
 
Old 02-01-2006, 12:16 PM   #2
onthefritz
Member
 
Registered: Dec 2005
Location: Colorado
Distribution: Ubuntu, RHEL, openSUSE
Posts: 105

Rep: Reputation: 19
If it is printing things to the screen but to fast for you to read you can redirect what is sent to the screen to another command. There are a few ways to do this.

One way is to pipe the command through less.
example:
ndiswrapper -l | less

Another way is to redirect the output to a file.
example:
ndiswrapper -l >> /home/me/errorfile.txt

I would recommend creating the txt file first. The redirect can work in two ways, first using only one >. This will remove all text from the file and replace it with the output of the command. the second way is using two of them like this >>. This will add the text to the bottom of the file.

I recommend using the redirect so you can cut, copy and paste easier.

onthefritz
 
Old 02-02-2006, 04:06 AM   #3
andy101
LQ Newbie
 
Registered: Nov 2005
Location: England, UK
Distribution: Ubuntu, 6.06 Daper Drake
Posts: 10

Original Poster
Rep: Reputation: 0
Perhaps I should have been more clear. I am not trying to capture the standard output of ndiswrapper. The debug messages appear to be sent to the system logger which is what ends up printing them to the screen (via changing the first parameter in /proc/sys/kernel/printk). For some reason unknown to me its not ending up in any of the log files that I can find despite the fact that the logger must be receiving the messages because its displaying it on the terminal. Note it won't display it on a xterm only on the terminal in Safe Mode (i.e. without booting gnome or any other desktop enviroment).

Thanks
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Logging output from kdeinit Dyadya_Sam Linux - Newbie 3 06-05-2005 11:50 PM
the sound gives output when using mic but no output when run a music file medo Debian 0 04-19-2004 07:17 PM
logging tar output chakkerz Linux - Newbie 2 03-09-2004 11:42 PM
Logging output from DUMP chrisk5527 Linux - General 2 01-26-2004 06:30 PM
logging all keyboard input/output to a file div Linux - General 0 02-20-2001 05:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

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

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