Reputation: 31
I have a script .sh
with a curl command in it:
curl --digest "http://xxxxxxx.xxx/[email protected]";
from terminal this works good :
./script.sh #(mail arrives in my box)
from php this works good:
shell_exec('./phpsc.sh'); // (mail arrives in my box)
from terminal this works good:
at -f phpsc.sh now + 5 minute
# (job created, mail arrives in my box after 5 minutes)
from php this won't work:
shell_exec('at -f phpsc.sh now + 5 minute'); //:( :(
even when I put at
command in script and run the script from php the at
command it will be ignored :(
Upvotes: 1
Views: 132
Reputation: 31
i have find the solution,
i removed www-data from /etc/at.deny and now 'at' comand works fine from php (sell_exec)
Upvotes: 2