[Wolfgang Schweer] > The below one should work (even sleep 1 seems to be enough).
What about a loop looking for a file every 1 second, and exiting after X seconds if no file is found. It should handle more load while exiting as quickly as possible. -- Happy hacking Petter Reinholdtsen