home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!wupost!darwin.sura.net!opusc!usceast!hellmann
- From: hellmann@cs.scarolina.edu (Doug Hellmann)
- Subject: Re: Opening up remote xterm windows?
- Message-ID: <hellmann.725215878@pecan.cs.scarolina.edu>
- Sender: usenet@usceast.cs.scarolina.edu (USENET News System)
- Organization: USC Department of Computer Science
- References: <1992Dec20.215237.3151@spectrum.xerox.com>
- Date: 24 Dec 92 16:51:18 GMT
- Lines: 70
-
- leisner@wrc.xerox.com ( Marty Leisner) writes:
-
- >I want a good way to open up remote xterm windows...
-
- >I'm using bash and have this a function:
- >rxterm ()
- >{
- > rsh $1 ./dologin "xterm -title $1 -display `hostname`:0 -e bash " &
- >}
-
- >The problem is, I get:
-
- >rxterm annapurna
- >[1] 5444
- >leisner@hydrus$
- >[1]+ Stopped (tty input) rsh $1 ./dologin "xterm -title $1 -display `hostname`:0 -e bash "
-
-
- >I tried redirecting stdout/stderr to /dev/null, but no luck...
-
- >The rsh is a job, which I can kill after it executes...
-
- >What I want is a system which backgrounds, and lets the rsh terminate cleanly...
-
- >Or is there a better way of doing what I'm trying to do?
-
- I do something like this, but not exactly what I think you are trying to do.
- Using tcsh, I start an xterm on my machine, and execute a telnet to the
- machine I want to have the session logged in on.
-
- I have some specific machines that I want to do this with, so I don't bother
- with making it generic. I set up some buttons on my root window menu to let
- me create a new window with two clicks of the mouse button.
-
- The important command line options here are :
-
- -e to execute a shell statement
- -ls to make this a login shell (runs your .login for you)
- -title so you know what the window holds
-
- Here are some sample lines, with some other neat stuff thrown in:
-
- To Read Mail:
-
- ( /usr/bin/X11/xterm -title ELM -xrm iconTitle=ELM -e /usr/local/bin/elm -m &)
-
- For a New Window on current machine:
-
- (/usr/bin/X11/xterm -ls -cb -title `hostname` &)
-
- To ftp to a site:
-
- (/usr/bin/X11/xterm -cb -title gatekeeper -e ftp gatekeeper.dec.com &)
-
- To rlogin (or telnet) to another site: (note that it also allows you to
-
- start up other X clients on the foriegn machine and display on your machine)
-
- (/usr/bin/X11/xhost +; /usr/bin/X11/xterm -cb -title gondwana -e rlogin gondwana.geol.scarolina.edu&)
-
- >--
- >marty
- >leisner.henr801c@xerox.com leisner@eso.mc.xerox.com
- >Member of the League for Programming Freedom
-
-
- --------------------------------------------------------------------------------
- Doug Hellmann No one is exempt from talking nonsense,
- University of South Carolina the only misfortune is to do it solemnly.
- hellmann@cs.scarolina.edu -- Montaigne
-