#!/bin/sh

MACHINE=botrytis
PORT=/dev/ttyb
DLL=/pro/sim/legos/legOS/util/dll
CWD=`pwd`

if [ $# -eq 2 ]; then
	rsh $MACHINE $DLL -t$PORT $1 $CWD/$2
elif [ $# -eq 1 ]; then
	rsh $MACHINE $DLL -t$PORT $CWD/$1
else
	echo "usage: rdll -p<program_num> file.lx"
fi
