#! /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 &
