#!/bin/sh

if [ $# != 1 ]; then
echo "Use: wait_for_file filename"
exit 1
fi

while true
do
if [ -f "$1" ]; then
echo "$1 is here now"
exit 0
fi
sleep 5 
done
