lmb@sat.com (Larry Blair) (02/17/91)
System: 9000/3XX O/S: 7.0 According to the HP documentation, the "-C" option to xterm and hpterm should grab output to /dev/console, but the option does not appear to work, even if I start the window as root. What do I need to do to make this work? -- Larry Blair lmb@sat.com {apple,decwrl}!sat!lmb
hardy@golem.ps.uci.edu (Meinhard E. Mayer (Hardy)) (02/17/91)
In article <1991Feb16.220545.12333@sat.com> lmb@sat.com (Larry Blair) writes: > System: 9000/3XX > O/S: 7.0 > > According to the HP documentation, the "-C" option to xterm and hpterm > should grab output to /dev/console, but the option does not appear to > work, even if I start the window as root. What do I need to do to make > this work? I have the OS (9000/370 and 9000/345(diskless) ). The following lines in my .x11start bring up a console xterm --- mwm & sleep 5 # Allow time for initializing hpwm before starting other clients. if [ -z "$COPYRIGHT_SEEN" ] then /usr/bin/X11/xterm -C -ls -geometry 80x24+0+145 -fn iso1.16b -T CONSOLE -n CONSOLE $@ & fi ------ However, in order that your display act as console, you must also have a /usr/lib/X11/Xconsoles file (albeit empty), if my memory is correct (I set up the system about 8 months ago). Hardy Mayer ----****---- Professor Meinhard E. Mayer Department of Physics University of California Irvine, CA, 92717 USA
paul@eye.com (Paul B. Booth) (02/18/91)
In article <1991Feb16.220545.12333@sat.com> lmb@sat.com (Larry Blair) writes: >System: 9000/3XX >O/S: 7.0 > >According to the HP documentation, the "-C" option to xterm and hpterm >should grab output to /dev/console, but the option does not appear to >work, even if I start the window as root. What do I need to do to make >this work? My guess is that you don't have a /usr/lib/X11/Xconsoles file. This little gem, which may be mentioned in the hp docs (but I've never found it), tells the server who can receive console output and who can't. If the file isn't there nobody gets console output. Create the file and put a * as the first and only character, and you should be ok. -- Paul B. Booth (paul@eye.com) (...!hplabs!hpfcla!eye!paul) ------------------------------------------------------------------------------- 3D/EYE, Inc., 2359 N. Triphammer Rd., Ithaca, NY 14850 voice: (607)257-1381 fax: (607)257-7335
mds3399@isc.rit.edu (M.D. Stokes ) (02/18/91)
>>...the "-C" option to xterm ...option does not appear to work > My guess is that you don't have a /usr/lib/X11/Xconsoles file. I had xterm -C working under HP-UX X11R3 (from HP) just fine on my HP9k375 HP-UX 7.03. I then loaded X11R4 binaries from me10.lbl.gov (work has been a wonderful service !) and this option no longer works. I looked at the code in the source file and it seems to be choking on an ioctl(tty, TIOCCONS, (char *)&on) call in main.c. This is as far as I've gotten. --------------------------------------------------------------------------- Mike Stokes mds@judd.rit.edu (716)-475-7189 Munsell Color Science Laboratory (where color WYSIWYG is becoming a reality) Rochester Institute of Technology Rochester, NY 14623
ianhogg@cs.umn.edu (Ian J. Hogg) (02/19/91)
I prefer to use xconsole from expo.lcs.mit.edu and the r4 distribution. -- =============================================================================== Ian Hogg ianhogg@cs.umn.edu (612) 225-1401
lmb@sat.com (Larry Blair) (02/19/91)
In article <1991Feb17.225825.5760@eye.com> paul@eye.com (Paul B. Booth) writes: =In article <1991Feb16.220545.12333@sat.com> lmb@sat.com (Larry Blair) writes: =>System: 9000/3XX =>O/S: 7.0 => =>According to the HP documentation, the "-C" option to xterm and hpterm =>should grab output to /dev/console, but the option does not appear to =>work, even if I start the window as root. What do I need to do to make =>this work? = =My guess is that you don't have a /usr/lib/X11/Xconsoles file. This little =gem, which may be mentioned in the hp docs (but I've never found it), tells =the server who can receive console output and who can't. If the file isn't =there nobody gets console output. Create the file and put a * as the first and =only character, and you should be ok. Oh. How could I miss something so obvious? Well, I tried it. Now there's only one problem, namely: Memory fault - core dumped I'm running an R4 server, but the 7.0 xterm (probably R3). Is that the problem? Where can I get an R4 xterm? -- Larry Blair lmb@sat.com {apple,decwrl}!sat!lmb
milburn@me10.lbl.gov (John Milburn) (02/20/91)
In article <1991Feb19.013236.14895@sat.com> lmb@sat.com (Larry Blair) writes: >Oh. How could I miss something so obvious? >Well, I tried it. Now there's only one problem, namely: >Memory fault - core dumped >I'm running an R4 server, but the 7.0 xterm (probably R3). Is that the >problem? Where can I get an R4 xterm? The 7.0 xterm should work with the R4 server. You might check the permission of /usr/bin/X11/xterm. It should be: ---s--x--x 1 root bin 531932 Aug 4 1990 /usr/bin/X11/xterm Also, the /usr/lib/X11/Xconsoles file should contain a list of the seats (displays) which are allowed to grab console output. If yours is a single head system, a single entry of * will work just fine. Be sure Xconsoles is readable. If none of this works, I can send you the R4 xterm (but it really should work)! -jem -- JEMilburn@lbl.gov ...!ucbvax!lbl.gov!JEMilburn "I don't sing, I don't dance, and I don't like people who do." -Leterman
hardy@golem.ps.uci.edu (Meinhard E. Mayer (Hardy)) (05/12/91)
In article <1991Feb16.220545.12333@sat.com> lmb@sat.com (Larry Blair) writes:
System: 9000/3XX
O/S: 7.0
According to the HP documentation, the "-C" option to xterm and hpterm
should grab output to /dev/console, but the option does not appear to
work, even if I start the window as root. What do I need to do to make
this work?
Do you have a file /usr/lib/X11/Xconsoles with the entry
* ?
That may be the cause of your problem.
Greetings,
Hardy
-------****-------
Meinhard E. Mayer (Hardy); Department of Physics, University of California
Irvine CA 92717; (714) 856 5543; hardy@golem.ps.uci.edu or MMAYER@UCI.BITNET
tay@hpcvlx.cv.hp.com (Mike Taylor) (05/17/91)
> System: 9000/3XX > O/S: 7.0 > > According to the HP documentation, the "-C" option to xterm and hpterm > should grab output to /dev/console, but the option does not appear to > work, even if I start the window as root. What do I need to do to make > this work? The man page for xterm says: -C This option indicates that this window should be receive console output. This is not supported on all systems. ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ Also look under XCONSOLES near the end of the hpterm man page for additional details on the -C option. Peace, Mike Taylor Current Products Engineering & Online Interface Technology Operation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Surface: Hewlett-Packard Internet: tay@hpcvlx.cv.hp.com 1000 NE Circle Boulevard UUCP: {hpfcla}!hpcvlx!tay Corvallis, Oregon 97330 Fax: (503) 750-4980 "I get stranger things than you free with my breakfast cereal!" - Zaphod Beeblebrox
ian@rathe.cs.umn.edu (Ian Hogg) (05/17/91)
I've seen various people with questions about having xterm, hpterm take over the system console. I urge people to take a look at xconsole from the MIT contrib directory. I like it alot better because because it just presents console output in an list widget that you can scroll through. It normally is unmapped but maps itself when it receives output on the console. You can't miss it because it doesn't look like other applications. I found that using xterm/hpterm sometimes I didn't notice a message that was sent to the console. I wrote a simple lp interface for postscript printer, that read messages back from the printer. These messages were sent to /dev/console, and as a result the things like "Paper Out", etc. popped up the display. This allowed the paper to be replaced immediately instead of when someone happened to go to the printer to pick something up. I do remember having to do a little bit of work to get it running on HP-UX. And of course it uses Athena widgets. As always, I switched jobs so I don't have ready access to the changes I made but maybe I can get someone to mail me the source code and perhaps a series 300 binary. -- Ian Hogg email: rathe!ian@cs.umn.edu ...!umn-cs!rathe!ian Rathe, Inc ianhogg@cs.umn.edu 366 Jackson Street phone: (612) 225-1401