#!/bin/sh
#
# Usage: ftpput tmpfile "gzip opts"
#
# Copyright (c) 2004-2006 Hubert Feyrer <hubert@feyrer.de>
#

tmpfile="$1"
gzip_opts="$2"

if [ ! -f "$tmpfile" ]
then
	echo Usage: $0 tmpfile gzip_opts
	exit 1
fi

( cat $tmpfile
  dd bs=1m | gzip $gzip_opts
) | ftp -n
