[ LUGOS ] remote X
Franc Cervan
franc na eurocom.si
Pet Okt 10 17:02:23 CEST 1997
Hvala vsem, ki ste odgovorili na temo remote X.
dela!
za tale reply bom pa rabil vec casa.
lp, franc.
----------
> From: Primoz Peterlin <peterlin na biofiz.mf.uni-lj.si>
> To: lugos-list <lugos-list na lugos.si>
> Subject: Re: [ LUGOS ] remote X
> Date: Friday, October 10, 1997 12:52 PM
>
> On Fri, 10 Oct 1997, Franc Cervan wrote:
>
> > Ali obstaja nacin, da na eni masini startam X-e in jih na drugi vidim?
> > Oz. se vec, da preko svojih X-ov poganjam na remote masini aplikacije
ki
> > zahtevajo X-e?
>
> Tole sem se nasel, kar bi te morda lahko zanimalo:
>
> #! /bin/sh
> # start an X11 process on another host
> # Date: 8 Dec 88 06:29:34 GMT
> # From: Chris Torek <chris na mimsy.umd.edu>
> # rsh $host -n "setenv DISPLAY $DISPLAY; exec $@ </dev/null >&/dev/null"
> #
> # An improved version:
> # rXcmd (suggested by John Robinson, jr na bbn.com)
> # (generalized for sh,ksh by Keith Boyer, keith na cis.ohio-state.edu)
> #
> # but they put the rcmd in ()'s which left zombies again. This
> # script combines the best of both.
>
> case $# in
> [01]) echo "Usage: $0 host x-cmd [args...]";;
> *)
> case $SHELL in
> *csh*) host="$1"; shift
> xhost "$host" > /dev/null
> rsh "$host" -n \
> "setenv TERM xterm; setenv DISPLAY `hostname`:0; \
> exec $* </dev/null >& /dev/null" &
> ;;
> *sh)
> host="$1"; shift
> xhost "$host" > /dev/null
> rsh "$host" -n \
> "TERM=xterm export TERM; \
> DISPLAY=`hostname`:0 export DISPLAY; \
> LD_LIBRARY_PATH=/usr/X11/lib export LD_LIBRARY_PATH; \
> PATH=\$PATH:/usr/X11/bin:/usr/bin/X11:/usr/local/bin; \
> export PATH; \
> exec $* < /dev/null > /dev/null 2>&1" &
> ;;
> esac
> ;;
> esac
>
> Lep pozdrav, Primoz
>
> --
> Primož Peterlin email: primoz.peterlin na biofiz.mf.uni-lj.si
> Inštitut za biofiziko MF, Lipičeva 2, SI-1105 Ljubljana, Slovenija
> Fax: +386-61-1315127 WWW: http://sizif.mf.uni-lj.si/~peterlin/
Dodatne informacije o seznamu Starilist