#!/bin/sh
#
# PC-Xview MS-DOS command executer
# Copyright (C) 1988, 1989 by Graphic Software Systems, Inc.
# All rights reserved
#
# Xview does not support the full rsh protocol.  Xview supports only enough
# to provide a few simple DOS commands, as listed below.
#
# $Header: /xqa2/build/xview/RCS/pcxdos,v 1.5 1989/05/12 14:07:41 johnl Exp $
# $Locker:  $
#
pc=`echo $DISPLAY | sed 's/:.*$//'`
case $# in
0)	echo "Usage: $0 command [arguments]   # command must be from list below"
	echo "           cd         change directory"
	echo "           del        delete a file (don't try *.*)"
	echo "           dir        list a directory"
	echo "           erase      erase a file (don't try *.*)"
	echo "           print      control already loaded print spooler"
	echo "           type       print a file"
	echo "Be sure to escape your back-slants (i.e., \\ -> \\\\)"
	echo "Other commands can be run in Xview by typing Alt-F1 to escape to DOS."
	;;
*)	rsh $pc $*;;
esac
