throatmonster
Registered
I'm trying to use a Mac Mini as a Digital Signage display driver, and also as a controller for the display. I'm using Python and a Keyspan USB Serial adapter driven by PHP scripts to control the display, and all that is working really well.
What I can't seem to figure out is how to get the GUI to open a PowerPoint Slideshow in the GUI via PHP. I'm running Apache as the logged in GUI user, I can do an "open powerpoint.pps" in the shell and that works, but the same command in PHP ( exec("open powerpoint.pps") ) does not work.
Maybe I can get automator to watch a folder or file, and when the file timestamp changes, provoke the action? Then a new file upload, or an exec command that copies and rewrites the existing file should do it.
But, does anyone know a better way than that, maybe how to get a PHP script to directly provoke some action in the logged in GUI user?
Thanks,
What I can't seem to figure out is how to get the GUI to open a PowerPoint Slideshow in the GUI via PHP. I'm running Apache as the logged in GUI user, I can do an "open powerpoint.pps" in the shell and that works, but the same command in PHP ( exec("open powerpoint.pps") ) does not work.
Maybe I can get automator to watch a folder or file, and when the file timestamp changes, provoke the action? Then a new file upload, or an exec command that copies and rewrites the existing file should do it.
But, does anyone know a better way than that, maybe how to get a PHP script to directly provoke some action in the logged in GUI user?
Thanks,