Logging to /dev/console


 
Thread Tools Search this Thread
Operating Systems BSD Logging to /dev/console
# 1  
Old 01-20-2009
Java Logging to /dev/console

Hi,

The output of the cat ttys on a free BSD m/c


console none unknown off secure
#
# Serial terminals
# The 'dialup' keyword identifies dialin lines to login, fingerd etc.
ttyd0 "/usr/libexec/getty std.9600" unknown on secure
ttyd1 "/usr/libexec/getty std.9600" dialup off
ttyd2 "/usr/libexec/getty std.9600" unknown off
ttyd3 "/usr/libexec/getty std.9600" unknown off
# Pseudo terminals
ttyp0 none network secure
ttyp1 none network secure
ttyp2 none network secure
ttyp3 none network secure
ttyp4 none network secure
ttyp5 none network secure
ttyp6 none network secure
ttyp7 none network secure
ttyp8 none network secure
ttyp9 none network secure

If I login to m/c's console using using pty command, what would /dev/console be mapped to. If I issue a ls command, I see that it is of size zero and it is not linked to /dev/tty's. Now if I want to redirect my log messages to the console and I edit my syslog.conf file to write the log messages to /dev/console, where would the messages get redirected.

Thanks in advance,
Lalitha.M
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Syslog not logging successful logging while unlocking server's console

When unlocking a Linux server's console there's no event indicating successful logging Is there a way I can fix this ? I have the following in my rsyslog.conf auth.info /var/log/secure authpriv.info /var/log/secure (1 Reply)
Discussion started by: walterthered
1 Replies

2. Solaris

Hang when run command with /dev/console

hi guys, I don't know why I run this command: echo a>/dev/console It is not responsed from console and hang. If I run echo a>/dev/null, it is OK. here it is the console file: mcl1101 root#ls -ltr /dev/console lrwxrwxrwx 1 root other 30 Aug 18 2009 /dev/console ->... (4 Replies)
Discussion started by: caspian
4 Replies

3. Solaris

How can i prevent logging user1 from console?

Dear all, i have two users user1 and user2 i want force user1 to login first by user2 and then su - user1 i want to prevent logging user1 from console directly (5 Replies)
Discussion started by: maxim42
5 Replies

4. Emergency UNIX and Linux Support

Capturing console (/dev/ttyS1) logs

Hi, I have been trying to capture console logs from the init script. When the ramfs is mounted, i check if usb is connected , if conncted, i mount it and redirected the console logs like so: cat & /dev/ttyS1 >> /mnt/logs.txt I'm getting /bin/sh : /dev/ttyS1 :permission denied ... (8 Replies)
Discussion started by: xerox
8 Replies

5. 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

6. 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

7. Solaris

script hangs when outputing to /dev/console

I am running solaris 8 on a sparcs box. The system is connected to a lightwave console server. I have a script that hangs when sending output to '/dev/console'. Any ideas? -V (2 Replies)
Discussion started by: vada010
2 Replies

8. Solaris

What is /dev/tty /dev/null and /dev/console

Hi, Anyone can help My solaris 8 system has the following /dev/null , /dev/tty and /dev/console All permission are lrwxrwxrwx Can this be change to a non-world write ?? any impact ?? (12 Replies)
Discussion started by: civic2005
12 Replies

9. UNIX for Dummies Questions & Answers

Logging all console activity to a file - how?

Hi all, Well I've had a bit more experience with Unix-like environments since my last post, now that I have started working on my website in earnest and am doing much of the file manipulation via the command line through SSH. The thing is, I want to be able to log all console activity,... (4 Replies)
Discussion started by: patwa
4 Replies

10. UNIX for Dummies Questions & Answers

/dev/console file

Hello, I am fairly new to UNIX. I ran command tty on my shell prompt and it return me /dev/console. I was reading in the book that normally output of tty command is tty01 , tty02 or so on. My question is this is the file for my monitor? UNIX called it Terminal or Workstation? What is this... (4 Replies)
Discussion started by: malikabid
4 Replies
Login or Register to Ask a Question
CONSCONTROL(8)						    BSD System Manager's Manual 					    CONSCONTROL(8)

NAME
conscontrol -- control physical console devices SYNOPSIS
conscontrol [list] conscontrol mute on | off conscontrol add | delete console conscontrol set | unset console DESCRIPTION
The conscontrol utility is used to examine and modify the physical devices which back the virtual console devices. If no arguments (or only the list command) are specified, the current console settings are shown. There are two types of logical consoles; a high level console which is represented by /dev/console, and a low level console. The low level console is used for kernel printf(9) and ddb(4) debugger support, while the high level console is used by user programs like syslogd(8). Multiple device support is implemented only for the low level console; the high level console is set to the first device in the console list. Multiple console support may be invoked by passing the kernel the -D flag from the boot loader, or by using conscontrol to change the list of console devices after the system has booted. The following options are available: add | delete console Add or delete a physical device from the logical console. The device must support low-level console operations. Adding a device will place it at the front of the list of console devices; the first device is used for the high level console. The console argument is the name of a console device in /dev; the name of the directory may be omitted. mute on | off Change the state of console muting. All console output is suppressed when console muting is on. set | unset console Set or unset the virtual console. When unset, output from the system, such as the kernel printf(9), always goes out to the real main console. When set, it goes to another. This is an interface to the tty ioctl TIOCCONS. SEE ALSO
sio(4), syscons(4), tty(4), vt(4), boot(8), loader(8) HISTORY
The conscontrol utility first appeared in FreeBSD 5.0. AUTHORS
Jonathan Lemon BSD
April 14, 2011 BSD