F

flagwait

This is a very simple shell script that waits for a file to appear in a flag directory before continuing