#!/bin/sh # A simple utility that waits for a file to become available, infinitely DAISY_INTERNAL=1 . $(dirname $(realpath $0))/daisy.source FILE=$@ while [ ! -f "$FILE" ] do sleep 0.1 done echo $FILE