#!/bin/sh -

# rshp - runs the UCB remote shell command no matter what it's called
# Steve Kinzler, steve@kinzler.com, Oct 93
# https://kinzler.com/me/home.html#unixuni

# Note:  We can't call this script "rsh" since remsh on hpux refuses to
# be initiated via any process named "rsh".

if   test -f /usr/bin/remsh; then rsh=/usr/bin/remsh	# hpux, r32v2, etc
elif test -f /usr/bin/rcmd;  then rsh=/usr/bin/rcmd	# SCO Unix
else				  rsh=rsh
fi

exec $rsh ${1+"$@"}
