Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!boulder!stan!sushi!gerber From: gerber@sushi.Solbourne.COM (Andrew Gerber) Newsgroups: comp.windows.x Subject: Re: Remote xterm strategy Message-ID: <1990Jan8.232120.13303@Solbourne.COM> Date: 8 Jan 90 23:21:20 GMT References: <9001081442.aa01513@SPARK.BRL.MIL> Sender: news@Solbourne.COM Reply-To: gerber@sushi.UUCP (Andrew Gerber) Organization: Solbourne Computer, Inc. Lines: 25 This shell script was found in /usr/bin/X11/rcmd on my machine here; I'm not sure if it's part of the normal X distribution, but it solves the "extra rsh hanging around" problem and in a easy-to-use way. -------cut here-------- #! /bin/sh # This command runs a command remotely in the background, by pointing # stdout and stderr at /dev/null. (Should we point stdin at /dev/null too?) # By running this through the Bourne shell at the other end, and # we get rid of the rsh and rshd which otherwise hand around at either # end. Hacked from a posting by clyde@emx.utexas.edu to list.xpert if test $# -lt 2 ; then echo Usage: $0 remotehost remotecommand exit 1 else host=$1 shift fi echo "($*)" '> /dev/null 2>&1 &' | rsh $host /bin/sh & -------- -- / Andrew S. Gerber / Solbourne Computer, Inc / / gerber@solbourne.com / 1900 Pike Rd, Longmont, CO 80501 / / ...!{sun,boulder}!stan!gerber (303) 678-4606 /