Console Log


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Console Log
# 1  
Old 05-21-2004
Console Log

Does anyone know how to redirect any messages sent to /dev/console to a file. Thanks in advance.
# 2  
Old 05-21-2004
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  
Old 05-21-2004
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  
Old 05-21-2004
Yes, of course, add the line instead of changing it:
Code:
*.err                                /dev/console
*.err                                /var/log/mylog

Cheers
ZB
# 5  
Old 05-21-2004
Thanks for your help!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. OS X (Apple)

How can I direct messages from mac console.app to a log file?

I'm trying to complete a bash script to capture if an external webcam is active in a video conference session. Some users will switch the camera to the built-in MAC camera. When this happens I want to trigger a set of events. Things tried: reviewed the console.app to look for patterns on when... (6 Replies)
Discussion started by: dallas88
6 Replies

2. Shell Programming and Scripting

Output to console and to log

I have a menu based script where user will select different action via displayed menu. I want to log all the action or say whatever displayed on screen to a log file and want to achieve with in the same script. i tried named pipe as below.. logfile=mylogfile mkfifo ${logfile}.pipe... (3 Replies)
Discussion started by: vidyadhar85
3 Replies

3. Shell Programming and Scripting

Event logging to file and display to console | tee command is not able to log all info.

My intention is to log the output to a file as well as it should be displayed on the console > I have used tee ( tee -a ${filename} ) command for this purpose. This is working as expected for first few outputs, after some event loggin nothing is gettting logged in to the file but It is displaying... (3 Replies)
Discussion started by: sanoop
3 Replies

4. Solaris

Can not log onto console

Hi, I have been trolling thorugh vast numbers of information but have not yet found a solution to my problem. I am unable to log onto my servers console and I can not explain whats going on. I am running Solaris 10 and have a console connected to it via a kvm switch. I am able to see the... (2 Replies)
Discussion started by: philjt88
2 Replies

5. UNIX for Dummies Questions & Answers

Windows to Linux remote console using VNC brings up blank console screen with only mouse pointer

:confused:Hi This was installed on the Linux box a few weeks back by a guy that no longer works for us. All worked fine until last week. Now when we connect its just a blank screen with no icons. I get a whole bunch of errors when starting the service too: Tue Feb 23 14:29:45 2010 ... (1 Reply)
Discussion started by: wbdevilliers
1 Replies

6. Shell Programming and Scripting

Tailing new log file & echo the string on console

Guys, I do have a script that runs to take the server out from network, after running the script it is writing the new log file{outFile} in to directory . Now what i need is my script should tail the last modified file{outFile} & search the string {Server Status} ans should echo the same at the... (0 Replies)
Discussion started by: raghunsi
0 Replies

7. Red Hat

Cannot log from console login

Hello All, I'm facing the following problem: On a specific server I have installed Red Hat ES 4.5 and everything seems ok. But after a specific reboot, when the login prompt on the console, I put the root password and I canīt log on. It is strange for me due to if y try to log on using SSH I... (1 Reply)
Discussion started by: mig28mx
1 Replies

8. Shell Programming and Scripting

permanent log monitoring and leaving the console

Hello, I'd like to create a small application which would monitor one important log on our Solaris 10 environment. So far, I createad a script which does the monitoring, and I though through nohup it would become one of the permanent running processes. >nohup monitor.sh & 3139 > more... (4 Replies)
Discussion started by: MartinF
4 Replies

9. UNIX for Advanced & Expert Users

console /dev/console get image

We are using software (Pegasys) which runs on SunOS 5.8 and reads images from a Philips nuclear camera. The software is designed to run from the console. I need to be able to capture the images it produces on the display. The caveat is that I cannot use the X Windows display because the X Server... (3 Replies)
Discussion started by: sreyes27
3 Replies

10. UNIX for Dummies Questions & Answers

Console Log in..

Hi, Can anubody tell me how to log in to a remote server through console? Your help is appreciated.. (5 Replies)
Discussion started by: Amol21
5 Replies
Login or Register to Ask a Question