Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!ncar!tank!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.windows.x Subject: Re: Starting remote xterms Message-ID: <14904@mimsy.UUCP> Date: 8 Dec 88 06:29:34 GMT References: <5345@polya.Stanford.EDU> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 25 I use the following script (called `xrsh') to start commands on remote machines. It leaves no extra processes, and exports DISPLAY to the remote machine (which rsh does not). It does assume you use the C shell, although changing this is trivial: make the last line rsh $host -n "DISPLAY=$DISPLAY exec $@ /dev/null 2>&1" #! /bin/sh # # start an X11 process on another host # # simply exports $DISPLAY, and runs the given command case $# in 0|1) echo "usage: $0 host cmd [args]" 1>&2; exit 1;; esac : ${DISPLAY-"no DISPLAY environment variable"} host="$1" shift rsh $host -n "setenv DISPLAY $DISPLAY; exec $@ &/dev/null" -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris