Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Looking for 1-line Command for Remote Xterm

10 views
Skip to first unread message

Matt Stanik

unread,
Dec 11, 2000, 3:53:42 PM12/11/00
to
Hi all,

Let's say I'm working on 'thishost'
I'm trying to find a one-line equivalent for the following:

rlogin thathost
export DISPLAY=thishost:0
xterm

The closest I've come is rsh thathost /usr/openwin/bin/xterm -display
thishost:0
it works, but .profile and .kshrc are not sourced... which is no good.

Thanks,
Matt

Barry Margolin

unread,
Dec 11, 2000, 4:17:06 PM12/11/00
to
In article <3A353ED6...@ecg.csg.mot.com>,

from "man xterm":

-ls This option indicates that the shell that is started
in the xterm window will be a login shell (i.e., the
first character of argv[0] will be a dash, indicat-
ing to the shell that it should read the user's
.login or .profile).

--
Barry Margolin, bar...@genuity.net
Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

Alan Stange

unread,
Dec 11, 2000, 11:43:54 PM12/11/00
to
Matt Stanik wrote:

I find that doing something like this is also nice:

rsh thathost -n "sh -c "DISPLAY=thishost:0; export DISPLAY; exec xterm
-ls -sb -sl 500 < /dev/null > /dev/null 2>&1"


If I got all this right from memory, then one is left with nothing
running except the actual xterm binary. No rsh client, no extra shells
anywhere. One can now replace "xterm -options" with any X11 app...


I recall that there is also an Xrsh that does all of this.

John D Groenveld

unread,
Dec 12, 2000, 2:36:53 AM12/12/00
to
ssh -f thathost ". ./.profile; xterm"

With ssh, DISPLAY is set for you.
John
groe...@acm.org

Jeff Howie

unread,
Dec 17, 2000, 3:51:15 PM12/17/00
to ma...@ecg.csg.mot.com, comp.uni...@list.deja.com

Your .profile is only sourced by login shells, so:

$ rsh thathost /usr/openwin/bin/xterm -ls -display thishost:0

Would do the trick.
--
thks.jeff


Sent via Deja.com http://www.deja.com/
Before you buy.

0 new messages