11-20-2008
Changing the appearance of an Output in console
I want to change the appearance of a message I got in UNIX console.
Eg: In console: "no server running"
I need it as "****no server running*****".
Thanks in advance.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
could someone please tell me how to stop error messages being displayed to the console port.
Currently, error messages are streaming to the console and I ant do anything.
many thanks..... (2 Replies)
Discussion started by: boristhespider
2 Replies
2. Programming
Hi
I am doing file redirection at console for use by my binary.
%console%> bin < inputfile
After reading in the entire file, I want my program to continue taking input from the console. So essentially I want to redirect stdin back to console. But I cant figure out how to do it.
I am... (4 Replies)
Discussion started by: nauman
4 Replies
3. Programming
I am writing a program that uses system() to pass commands to the command interpreter. Is there a way to read the output that the commands produce? (1 Reply)
Discussion started by: Blaster999
1 Replies
4. UNIX for Dummies Questions & Answers
I am running Shorewall firewall config program to utilize iptables on a Debian 3.3.5 system. This system is setup for a getway/router. I am getting a message:
Shorewall:bogons:Drop:IN=eth0 OUT= MAC+ mac address of eth0 SRC:someinternetIP DST=MYIPADD LEN=61 TOS+0x00 PREC=0x00 TTL=114 ID=6673... (3 Replies)
Discussion started by: pflink
3 Replies
5. Cybersecurity
I'm doing a security sweep of a Sun Sol 5.8 system. The file: /dev/console, which links to /devices/pseudo/cn@0:console, has the following perms: crw--w--w- I would like to get rid of the world write permissions. I can change the file permissions, but as soon as log back in, they are changed... (4 Replies)
Discussion started by: ErnieG
4 Replies
6. UNIX for Dummies Questions & Answers
Hi folks,
Please advise which command/command line shall I run;
1) to display the command and its output on console
2) simultaneous to save the command and its output on a file
I tried tee command as follows;
$ ps aux | grep mysql | tee /path/to/output.txt
It displayed the... (7 Replies)
Discussion started by: satimis
7 Replies
7. Solaris
Hey everyone
I have a sparc enterprise T2000 I'm trying to install solaris 10 on. The only way I can connect to it is the SER MGT console, but I'm not getting anything to display (in Hyper terminal, or PUTTY) when I boot it. Upon googleing, all I get back is "No output may have been generated.... (4 Replies)
Discussion started by: goodvikings
4 Replies
8. Shell Programming and Scripting
Hellos!
I want to have a unix script that will run grep on the console output. Here is what my script does:
1. Telnet into a remote server (I have done this part successfully)
2. On successful login, the remote server displays outputs information on the console. I need to run grep on that... (6 Replies)
Discussion started by: puneet1984
6 Replies
9. Shell Programming and Scripting
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
10. Shell Programming and Scripting
Hello,
I have a file. The content of the file is shown below.
>AB34.txt
65
66
67
68
>2D2Z.txt
61
62
>2D2Z.txt
92
93
94
>3E50.txt
106
107
>3E50.txt (1 Reply)
Discussion started by: manual
1 Replies
LEARN ABOUT FREEBSD
conscontrol
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