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

  1. Path: sparky!uunet!dtix!darwin.sura.net!udel!rochester!rocksanne!leisner
  2. From: leisner@wrc.xerox.com ( Marty Leisner)
  3. Newsgroups: comp.unix.shell
  4. Subject: Opening up remote xterm windows?
  5. Message-ID: <1992Dec20.215237.3151@spectrum.xerox.com>
  6. Date: 20 Dec 92 21:52:37 GMT
  7. Sender: news@spectrum.xerox.com
  8. Reply-To: leisner@eso.mc.xerox.com
  9. Organization: Xerox
  10. Lines: 43
  11. X-Newsreader: TIN [version 1.1 PL8]
  12.  
  13. I want a good way to open up remote xterm windows...
  14.  
  15. I'm using bash and have this a function:
  16. rxterm () 
  17.     rsh $1 ./dologin "xterm -title $1 -display `hostname`:0 -e bash "  &
  18. }
  19.  
  20. In .dologin, I have:
  21. #! /bin/csh
  22.  
  23. source ~/.login
  24. $* &
  25.  
  26.  
  27. to read my .login file (and set up my environment and path -- I don't use this
  28. in csh...).
  29.  
  30.  
  31. I then invoke the command (in this case, xterm...)
  32.  
  33. I'm also running bash on the remote system in an xterm window...
  34.  
  35. The problem is, I get:
  36.  
  37. rxterm annapurna
  38. [1] 5444
  39. leisner@hydrus$ 
  40. [1]+  Stopped (tty input)     rsh $1 ./dologin "xterm -title $1 -display `hostname`:0 -e bash "
  41.  
  42.  
  43. I tried redirecting stdout/stderr to /dev/null, but no luck...
  44.  
  45. The rsh is a job, which I can kill after it executes...
  46.  
  47. What I want is a system which backgrounds, and lets the rsh terminate cleanly...
  48.  
  49. Or is there a better way of doing what I'm trying to do?
  50.  
  51. --
  52. marty
  53. leisner.henr801c@xerox.com  leisner@eso.mc.xerox.com
  54. Member of the League for Programming Freedom
  55.