#!/bin/sh if [ $# \!= 3 ]; then 1>&2 echo 'usage: employ.sh ' exit 1 fi host="$1" port="$2" file="$3" { echo -n 'NEW JOB ' stat -c %s "$file" cat "$file" echo 'MARK AS available' echo QUIT } | nc "$host" "$port"