home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / amiga / 2568 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  1.9 KB

  1. Path: sparky!uunet!uiunix!ui.org
  2. From: md@ui.org (Mark Doran)
  3. Newsgroups: comp.unix.amiga
  4. Subject: Opening xterm under twm
  5. Message-ID: <378@uiunix.ui.org>
  6. Date: 16 Dec 92 15:24:12 GMT
  7. Sender: md@uiunix.ui.org
  8. Organization: UNIX International, Parsippany, NJ  07054
  9. Lines: 52
  10.  
  11.  
  12. Does anyone out there recognise this symptom and know a cure??
  13.  
  14. I have a .twmrc file with the following lines in the MENU section of the 
  15. file:
  16.  
  17. Menu "WindowOps" {
  18.         "WindowOps"     f.title
  19.         "top"           f.raise
  20.         "bottom"        f.lower
  21.         "focus"         f.focus
  22.         "iconify"       f.iconify
  23.         "move"          f.move
  24.         "resize"        f.resize
  25.         "delete"        f.destroy
  26.         "new OL"        !"olterm &"
  27.     "new XT"    !"xterm &"
  28.         "xemacs"        !"/usr/public/bin/xemacs &"
  29.         "reset twm"     f.restart
  30. }
  31.  
  32. This is bound to button three.  I can successfully launch olterm and emacs
  33. with no problem.  However, xterm will not, no way, no how, start.
  34.  
  35. Frustrated, 'cos this ought to be simple I changed the xterm entry to:
  36.  
  37.  "new XT"        !"echo '/home/md/bin/mxterm' | /usr/bin/ksh > /tmp/zzz 2>&1 &"
  38.  
  39. to try and figure out what's going wrong.  The output from this is:
  40.  
  41. xterm: Error 14, errno 22: Invalid argument
  42.  
  43. Which I think means can't open /dev/tty 'cos open() fails with EINVAL.
  44. Now according to the man page for open, it doesn't set errno to EINVAL
  45. at all...
  46.  
  47. At this point I gave up figuring that someone cleverer than me has probably
  48. already worked out what to do here.
  49.  
  50. Although I suppose I could use olterm, I would rather use xterm if I can
  51. make it work.  So if you know how to fix this problem, please let me know.
  52.  
  53. Thanks in advance!
  54.  
  55. Cheers,
  56.  
  57. Mark.
  58. --
  59. Mark Doran                                     ATT:  +1 201 263 8400 x 265
  60. Project Manager                                UUCP: m.doran@ui.org
  61. UNIX International                             FAX:  +1 201 263 8401
  62.  
  63.