In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Brian Dimeler) wrote:
> 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) I just took an existing mod_perl script running on my PowerBook and added: my $book = new Mac::Glue 'Address Book', eppc => 'Address Book', 'bourque.local', undef, undef, 'pudge', 'pass'; print $book->prop('version')->get, "\n\n"; $book->activate; I went to the URL in my browser, and it worked. It printed "3.1.2" and then brought Address Book to the front. My wild offhand guess is that you have a different mod_perl than installed perl: different version, or architecture, or something. -- Chris Nandor [EMAIL PROTECTED] http://pudge.net/ Open Source Development Network [EMAIL PROTECTED] http://osdn.com/