The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
console set up hp ux 11i jestinabel HP-UX 2 12-18-2006 01:30 AM
Console sonali UNIX for Dummies Questions & Answers 7 11-02-2006 02:39 AM
How to get console b_manu78 AIX 1 06-29-2005 03:29 AM
console guest100 UNIX for Dummies Questions & Answers 5 02-13-2002 06:17 AM
Console guest100 UNIX for Dummies Questions & Answers 4 10-19-2001 08:21 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-21-2004
kdreaves kdreaves is offline
Registered User
  
 

Join Date: Dec 2003
Posts: 9
Console Log

Does anyone know how to redirect any messages sent to /dev/console to a file. Thanks in advance.
  #2 (permalink)  
Old 05-21-2004
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
You could modify /etc/syslog.conf

For example, if a line reads
Code:
*.err                         /dev/console
Change it to
Code:
*.err                         /var/log/mylog
for example. Obviously, you syslog.conf and system logging needs will vary. You'll need to edit each line where "/dev/console" appears in this way.,

Don't forget to restart the syslog daemon.

Peace
ZB
  #3 (permalink)  
Old 05-21-2004
kdreaves kdreaves is offline
Registered User
  
 

Join Date: Dec 2003
Posts: 9
Thanks for the fast reply. I'd the the messages to go to both /dev/console and to a file. Can you configure *err to go to two locations in syslog.conf?
  #4 (permalink)  
Old 05-21-2004
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Yes, of course, add the line instead of changing it:
Code:
*.err                                /dev/console
*.err                                /var/log/mylog
Cheers
ZB
  #5 (permalink)  
Old 05-21-2004
kdreaves kdreaves is offline
Registered User
  
 

Join Date: Dec 2003
Posts: 9
Thanks for your help!
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0