On 12/16/13 4:29 PM, David Skinner wrote: > I've thought about doing it queue style. However, I was hoping to find a > more synchronous style. Something where the original API call can return > the results (success/fail) of the executed shell script. Doing what Trevyn > Meyer suggested would most likely work, but we were hoping for the > execution to happen as the API call comes in rather than having the result > of the queued process happen up to 1 minute later (assuming a cron running > every minute). Also note that this API would not be used by many. So the > API calls would most likely come at most 2 - 3 times a day. Very minimal > traffic. We'd just prefer the process to be more instantaneous, which is > why I was thinking something like Node. What Chris London described is > basically what we're looking for.
You could always just use sudo with a shell script to have your script change to the correct user. You'd want to be very careful about that, but it could be done securely. Steve _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
