#!/bin/bash # uploadfile # automatically upload file $1 to $2 # by Haiyong Zheng # website: http://www.flyzhy.org # # Test the Arguments if [ $# -ne 2 ]; then echo -ne "Usage: $0 file upload_dir\n" exit 1 fi # # Upload file automatically ftp -i -in <