Re: Launchd Agents, Login Items, and Tiger
Re: Launchd Agents, Login Items, and Tiger
- Subject: Re: Launchd Agents, Login Items, and Tiger
- From: email@hidden (Peter Seebach)
- Date: Wed, 14 Nov 2007 11:42:25 -0600
In message <email@hidden>, 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden