site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com In message <358F23D4-61D6-44E5-B91D-4B7986377421@alum.mit.edu>, Mike Kobb write s:
Okay, thanks much! It does seem obvious now that I see it! :-) I can keep track of how quickly the app quits so that I can abort if it seems to be dying on launch, and I guess I'd just have the script check the return value of the program for a "normal" result to terminate the loop if I need to actually shut down the process.
Sure. TOOFAST=5 x=$(date +%s) until MyProgram do y=$(date +%s) if [ $(expr $y - $x) -lt $TOOFAST ] then exit 1 fi x=$y done ... And this is why I like launchd, because I've written WAY too many copies of that program. -s _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com