| "at" user account Hi, I need to delay execute a script (named "cleaner") that runs under root privileges. I need to execute it from my apache web server after some time (now+10 minutes). Is it possible to do this?
I tried to create another script (named "starter") that does some things and then runs "at -f /path_to_cleaner/cleaner now+10 minutes" and call it from PHP using sudo. That "starter" script runs fine, it creates the job, so I can see in list ("atq"), it is listed as root job but after it runs it mails me something about that the account is not enabled.
I think that it tries to run it under apache account that is really not enabled to log in... Do you anyone know how to do this correctly? |