#!/bin/sh -f
#
# copies arguments to NThost and starts up Word on them
#
# sticks file in user's $HOME\tmp
#
# usage: wncword NThost files...

wordpath="f:\\msoffice\\winword\\winword"
destdir=tmp

if [ $# -lt 2 ]; then
    echo Usage: `expr //$0 : '.*/\(.*\)'` 'NT-hostname file ...'
    exit 1
fi

hostname=$1
shift

if [ `wncwait $hostname` ]; then
    exit 1
fi

rcp $* $hostname:$destdir
rsh $hostname $wordpath $destdir\\`basename $1` &

