#! /bin/sh if [ -z $1 ]; then echo "File name missing - CANCEL!" exit elif [ -z $2 ]; then echo "Remote computer/target port missing - CANCEL!" exit elif [ -z $3 ]; then echo "Remote computer/target port missing - CANCEL!" exit fi volume=$(stat -c %s $1) diamonds=$(echo $volume/1014/50 | bc) netwrite -h $diamonds $2 $3 < $1