Thanks, Andrew.
Some clarifications (and apologies that this is technically off-topic
for radmind-users, but is nonetheless of interest to many radmind
admins using OS X):
The plist _must_ be placed in /Library/LaunchAgents. You can then
either reboot, or do this:
launchctl load -S LoginWindow -D local
which tells launchd to load Agents with a Session type of
"LoginWindow" from the local domain.
Now the job is loaded. To actually run the job:
launchctl start edu.umich.iHook.loginwindow
or whatever you've edited the job label to be.
I've noticed that when iHook is running this way, Command-L seems to
be ignored, so I cannot open the log drawer. Not a big deal.
-Greg
On Nov 19, 2007, at 8:01 PM, Andrew Mortensen wrote:
> On Nov 19, 2007, at 1:49 PM, Greg Neagle wrote:
>> Andrew:
>> Thanks for this update.
>> I've looked through the release notes and tried various things, but
>> still haven't puzzled out how to actually get iHook to work over the
>> loginwindow. I can run it as a login or logout hook, but can't get
>> it to run otherwise when the loginwindow is displayed.
> (Apologies to those of you who don't care about iHook. I'm looking
> to move all iHook things to SF.net in the near future, at which
> point discussion of iHook can move to an iHook mailing list.)
> The short answer is that you need to create a LaunchAgent for
> iHook. A dummy example can be found here:
> <http://www.ihook.org/files/edu.umich.iHook.loginwindow.plist>
> Just installing (after local modifications for paths and options)
> this LaunchAgent in /Library/LaunchAgents on Leopard will get you
> something that behaves like running iHook out of cron on pre-10.5
> systems.
> I thought it would take more work to get iHook running at arbitrary
> times on Leopard, but that turns out not to be the case. Using
> launchctl, you can force an iHook run:
> root# launchctl start edu.umich.iHook.loginwindow.plist
> In fact, because you can execute iHook this way, you don't
> necessarily have to rely on the StartCalendarInterval in the
> LaunchAgent to get scheduled runs. Your old scripts, executed by
> periodic or by cron, can simply use the launchctl command.
> Getting all of these changes into the Radmind Assistant's bundled
> scripts will take some work. I'd be grateful if someone were able
> to dedicate some time to updating them for the next release while I
> work on the application itself.
> andrew
> rsug
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________
Radmind-users mailing list
Radmind-us
...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/radmind-users