home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / shell / 5164 < prev    next >
Encoding:
Text File  |  1992-12-24  |  2.7 KB  |  82 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!wupost!darwin.sura.net!opusc!usceast!hellmann
  3. From: hellmann@cs.scarolina.edu (Doug Hellmann)
  4. Subject: Re: Opening up remote xterm windows?
  5. Message-ID: <hellmann.725215878@pecan.cs.scarolina.edu>
  6. Sender: usenet@usceast.cs.scarolina.edu (USENET News System)
  7. Organization: USC  Department of Computer Science
  8. References: <1992Dec20.215237.3151@spectrum.xerox.com>
  9. Date: 24 Dec 92 16:51:18 GMT
  10. Lines: 70
  11.  
  12. leisner@wrc.xerox.com ( Marty Leisner) writes:
  13.  
  14. >I want a good way to open up remote xterm windows...
  15.  
  16. >I'm using bash and have this a function:
  17. >rxterm () 
  18. >{ 
  19. >    rsh $1 ./dologin "xterm -title $1 -display `hostname`:0 -e bash "  &
  20. >}
  21.  
  22. >The problem is, I get:
  23.  
  24. >rxterm annapurna
  25. >[1] 5444
  26. >leisner@hydrus$ 
  27. >[1]+  Stopped (tty input)     rsh $1 ./dologin "xterm -title $1 -display `hostname`:0 -e bash "
  28.  
  29.  
  30. >I tried redirecting stdout/stderr to /dev/null, but no luck...
  31.  
  32. >The rsh is a job, which I can kill after it executes...
  33.  
  34. >What I want is a system which backgrounds, and lets the rsh terminate cleanly...
  35.  
  36. >Or is there a better way of doing what I'm trying to do?
  37.  
  38. I do something like this, but not exactly what I think you are trying to do.
  39. Using tcsh, I start an xterm on my machine, and execute a telnet to the
  40. machine I want to have the session logged in on.
  41.  
  42. I have some specific machines that I want to do this with, so I don't bother
  43. with making it generic.  I set up some buttons on my root window menu to let
  44. me create a new window with two clicks of the mouse button.
  45.  
  46. The important command line options here are :
  47.  
  48.     -e    to execute a shell statement
  49.     -ls    to make this a login shell (runs your .login for you)
  50.     -title    so you know what the window holds
  51.  
  52. Here are some sample lines, with some other neat stuff thrown in:
  53.  
  54. To Read Mail:
  55.  
  56. ( /usr/bin/X11/xterm -title ELM -xrm iconTitle=ELM -e /usr/local/bin/elm -m &)
  57.  
  58. For a New Window on current machine:
  59.  
  60. (/usr/bin/X11/xterm -ls -cb -title `hostname` &)
  61.  
  62. To ftp to a site:
  63.  
  64. (/usr/bin/X11/xterm -cb -title gatekeeper -e ftp gatekeeper.dec.com &)
  65.  
  66. To rlogin (or telnet) to another site: (note that it also allows you to
  67.  
  68. start up other X clients on the foriegn machine and display on your machine)
  69.  
  70. (/usr/bin/X11/xhost +; /usr/bin/X11/xterm -cb -title gondwana -e rlogin gondwana.geol.scarolina.edu&)
  71.  
  72. >--
  73. >marty
  74. >leisner.henr801c@xerox.com  leisner@eso.mc.xerox.com
  75. >Member of the League for Programming Freedom
  76.  
  77.  
  78. --------------------------------------------------------------------------------
  79. Doug Hellmann                         No one is exempt from talking nonsense,
  80. University of South Carolina          the only misfortune is to do it solemnly.
  81. hellmann@cs.scarolina.edu               -- Montaigne
  82.