markjoe Posted December 15, 2006 Share Posted December 15, 2006 I want to find a way to activate applescripts from PHP. The purpose here is to automate some operations on my web server (that I have applescripts for) from a web interface. The applescripts can be complied as applications also, if that makes any difference. Otherwise the are just like any other executable script file. I tried digging around the PHP functions, but didn't find any that looked like what I'm looking for. I know this may be a long shot. Quote Link to comment Share on other sites More sharing options...
trq Posted December 15, 2006 Share Posted December 15, 2006 Take a look at [url=http://php.net/exec]exec[/url] and its related functions. Quote Link to comment Share on other sites More sharing options...
markjoe Posted December 15, 2006 Author Share Posted December 15, 2006 Thanks alot, that looks like the function to do it.Having a few problems with it though. The www user does not have shell access by default, so I tried to add shell access to the www user by setting the shell for the www user to /bin/bash in Netinfo Manager. I still can't get shell access with the www user. I can issue commands like 'whoami' and 'pwd', but cannot run './hello.app'. ('./hello.app' works from the command line) But that may be for a different forum.Thanks again for the help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.