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
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.
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.
With ssh, DISPLAY is set for you.
John
groe...@acm.org
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.