I'm trying to use a PHP script to create
at jobs, but when it comes time to execute the jobs, nothing seems to be happening. I've tried to output any errors to log files, but have had no luck. It seems obvious that it's a permissions issue, because when I set apache to run as my personal user, everything works fine. However, when I exec wget directly from PHP, everything works fine so it seems that apache has the correct permissions to use it. The problem appears to be when using
at in conjunction with apache. So I need to find a way to make this work with apache running as its own user.
Here is the command I'm using:
echo "wget -qO- http://example.com/" | at now + 1 minute 2>&1
EDIT: Apache can create the at jobs, it just seems that when they execute nothing is happening.