Mac::Glue and mod_perl

[prev] [thread] [next] [Date index for 2005/01/14]

From: Brian Dimeler
Subject: Mac::Glue and mod_perl
Date: 16:45 on 14 Jan 2005
Sorry for cross-posting this, but i think it applies to both groups.

I'm trying to write a mod_perl script (for PerlRun) that will present an 
online interface to my Mac OS X Address Book. Using the standard method 
of connecting to the glue (new Mac::Glue 'Address Book') doesn't work; 
the webserver complains about not being able to connect to a window 
server. So, I'm using Remote Apple Events instead (yes, I remembered to 
turn them on in System Preferences):

my $book = new Mac::Glue 'Address Book',
	eppc => 'Address Book',
	'mac8.local' # hosts both the webserver + addressbook
	undef, undef, # uid & pid omitted
	'Mac8', 'mypass' # Mac8 is the Admin user & owner of addressbook

This line apparently causes the server child process to exit:

[Fri Jan 14 11:02:40 2005] [notice] child pid 6070 exit signal Bus error 
(10)

However, it works if I run it in a Terminal window (the remainder of the 
script successfully prints out a list of address groups). It even works 
when run in a Terminal window in a different, non-admin user account, as 
long as I include the admin username and pass, as above.

So, does anyone know why it's causing a "bus error" when I try to run it 
in the webserver? Is there a workaround?

Brian

Mac::Glue and mod_perl
Brian Dimeler 16:45 on 14 Jan 2005

Re: Mac::Glue and mod_perl
Martin Moss 16:52 on 14 Jan 2005

Re: Mac::Glue and mod_perl
Brian Dimeler 17:05 on 14 Jan 2005

Re: Mac::Glue and mod_perl
Leo Lapworth 19:40 on 14 Jan 2005

Generated at 12:39 on 05 Feb 2005 by mariachi v0.52