Re: command line tool called from php

2011-08-23 Thread Daniel Acosta
On Aug 23, 2011, at 12:15 AM, Jens Alfke wrote: > > On Aug 22, 2011, at 10:45 PM, Rainer Standke wrote: > >> I have a command line tool that uses foundation. When I run that tool from >> the command line it does what I need it to do. This includes sending an >> NSNotification to a Cocoa applic

Re: command line tool called from php

2011-08-23 Thread Rainer Standke
That's an interesting find, the fact that you can post notifications across sessions - I wasn't aware of that. And it turns out that this was the solution. PHP does run as a separate user, but it doesn't seem to matter. Thanks, Daniel, and everyone, for your help! Rainer On Aug 23, 2011, at 1

Re: command line tool called from php

2011-08-23 Thread Scott Ribe
On Aug 23, 2011, at 1:15 AM, Jens Alfke wrote: > Probably the best approach is to have your Cocoa app listen on an IP port and > then the tool can send a message to that port. You’d have to either hardcode > the port number or find a way to communicate the number to the tool This is what UNIX d

Re: command line tool called from php

2011-08-23 Thread Jens Alfke
On Aug 22, 2011, at 10:45 PM, Rainer Standke wrote: > I have a command line tool that uses foundation. When I run that tool from > the command line it does what I need it to do. This includes sending an > NSNotification to a Cocoa application via the NSDistributedNotificationCenter. > > When I