#!/bin/sh #< ftp a single file if [ "$#" -ne "1" ]; then echo "Usage: `basename $0` file" exit 1 fi if [ ! -f "$1" ]; then echo "$1 isn't a file I know of!!" && exit 1 fi # update last updated time on index.html slu ftp user@ftp.someserver.net << EoFTP epsv put $1 put index.html ls close quit EoFTP