1829601 Members
1874 Online
109992 Solutions
New Discussion

Redirect /dev/console

 
Dela Acolatse
Advisor

Redirect /dev/console

How do I redirect the output of my console to my desktop terminal?

I'm running HPUX 11.0

I'm sure this is an easy question, but I just can't find the answer any where.
5 REPLIES 5
Mark Greene_1
Honored Contributor

Re: Redirect /dev/console

If you are referring to the warning and error messages that display on the console, you can change the /etc/syslog.conf file to route them to the /dev/tty to which your desktop is attached. This, however, assumes a static connection.

If you are referring to routing all the display to /dev/console from interactivity from the console keyboard, you may be able to setup a named pipe to route the output to the /dev/tty to which your desktop system it attached.

HTH
mark
the future will be a lot like now, only later
Leif Halvarsson_2
Honored Contributor

Re: Redirect /dev/console

Hi

If you want to change this permanent you can change the console path at the boot screen.
Steve Steel
Honored Contributor

Re: Redirect /dev/console

Hi

Assuming Terminal is graphical

create a hpterm window in Console mode?

The following creates a hpterm that captures console output:

hpterm -C -title console -name Console -ls&

This command requires entry in the file:
/usr/lib/X11/Xconsoles
'*'
To test , create hpterm console and on an other window type:
cat > /dev/console
and type some text.
When you are finished, type a ctrl-d to stop the output to the console window.

Steve Steel

If you want truly to understand something, try to change it. (Kurt Lewin)
Stefan Farrelly
Honored Contributor

Re: Redirect /dev/console


The hpterms are a bit outdated, to use the more modern dtterm it has a -C option to do the same thing - direct console output to a dtterm X window. See manpage; man 1 dtterm
Im from Palmerston North, New Zealand, but somehow ended up in London...
Steve Steel
Honored Contributor

Re: Redirect /dev/console

Hi

the dtterm is a good point. It also use less resources than hpterm


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)