#!/bin/sh # difftarget - script to upload a file from the target and # diff it against a file on the host. # # Assumes expect is installed on host and ftpd running on target if [ $# -ne 3 ]; then echo "usage $0 targetFile targetNameOrIP hostFile" exit 0 fi # extract path to scripts dir - this version works with ../../ type relative # paths and full paths. SCRIPTPATH=`echo $0 | sed 's/[^\/]*$//'` $SCRIPTPATH/ultarget.tcl $1 $2 echo diff $1 $3