#!/bin/sh # ultarget - script to upload a file from the target # # 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 mv $1 $3 echo