randy@oetl.UUCP (Randy O'Meara) (02/05/89)
I'm having a bit of a problem getting xterm to work. My configuration is as follows: Model 320 computer with 98542A display system HP-UX 6.0 (soon to be 6.2) Xwindows Rev A.03.02 (X10 release) My problem is as follows: hpterm(1) runs just fine. When I try to execute xterm(1), I get a title bar in the upper left hand corner, and a rubber-band box attached to the mouse cursor. Problem is that when I press either mouse button, xterm terminates. No window, no error report, no nothing. If I bring up an hpterm window first, and try executing xterm in the background (xterm &), I see an exit return code of 32 when xterm terminates. Anybody else had this problem? E-mail would be appreciated. Thanks. -- _______________________________________________________________ < Randy O'Meara -- LMSC -- SCF > < {pyramid,leadsv}!oetl!randy PHONE: (408) 425-6249 > <_______________________________________________________________>
rocky@hpfcmr.HP.COM (Rocky Craig) (02/07/89)
No window, no error report, no nothing. Your .x11start script (which should be in $HOME) probably contains the line "exec > /dev/null 2>&1" which throws away stdout and stderr for the script and all of its children. One of these children is your window manager (probably uwm). I'm guessing you are using the mouse and buttons to fire off an xterm process. If you change that line to "exec > $HOME/.x11log 2>&1" you will pick up the error message in the file ~/.x11start. code of 32 when xterm terminates. errno 32 is "Broken pipe". When I got this with X10, I think my $DISPLAY was set incorrectly or not exported. You might try editting the .uwmrc file to change the invocation and explicitly request a display. Rocky Craig (ex-terminal user, X abuser :-) Hewlett-Packard Product Support ....!hplabs!hpfcla!rocky Standard disclaimer about my boss having no idea I posted this....
randy@oetl.UUCP (Randy O'Meara) (02/09/89)
Thanks for the reply Rocky. The problem (as pointed out by Chris Steinbroner - Thanks Chris) is that xterm expects to find the pty master/slave pairs in /dev. The normal HP-UX location for these files are /dev/ptym/* and /dev/pty/*. Just ``ln'' all the master and slave pty's to /dev, and it works. Now why isn't that mentioned in any of my documentation? >If you change that line to "exec > $HOME/.x11log 2>&1" you will pick up >the error message in the file ~/.x11start. Good suggestion for Xwindows first-timers. Here's what I use: exec >$HOME/.xstart.out 2>$HOME/.xstart.err >errno 32 is "Broken pipe". When I got this with X10, I think my $DISPLAY >was set incorrectly or not exported. You might try editting the .uwmrc >file to change the invocation and explicitly request a display. Broken pipe may well have been the real error, but there was no error reported to stderr. Thanks. -- _______________________________________________________________ < Randy O'Meara -- LMSC -- SCF > < {pyramid,leadsv}!oetl!randy PHONE: (408) 425-6249 > <_______________________________________________________________>