#!/bin/bash
#Check (from iceberg) whether there are enough herring in the freezer on antarctica. This is slightly contrived, but note the escaping.

ENOUGH=300
ssh tux@antarctica "(
	$HERRING_COUNT=\`cat herring_stock.txt\` ;
        if [ \"\$HERRING_COUNT\" -ge \"$ENOUGH\" ] ;then
		echo \"There are enough herring for the holiday.\"
		exit 0
	else
		echo -e \"Not enough herring.\\\nTime to catch some fish.\"
		exit 1
	fi	
)"
