ncftpput="Ophmisu/tools/ncftpput"
if [ ! -f $ncftpput ]; then
        echo "[FTPUpload] Ftp uploader binary ($ncftpput) not found!"
        exit
        fi
if [ ! $# -eq 5 ]; then
	echo "[FTPUpload] Missing argument. Syntax: $0 <user> <pass> <host> <remote_dir> <local_file>"
	exit
	fi
user=$1
pass=$2
host=$3
rdir=$4
lfil=$5
if [ ! -f $lfil ]; then 
	echo "[FTPUpload] Specified local file not found for uploading ($lfil)"
	exit
	fi
./$ncftpput -u $user -p $pass $host $rdir $lfil
