我有一个.sh
带有curl命令的脚本:
curl --digest "http://xxxxxxx.xxx/mail.php?email=xxxx@xxx.xx";
从终端这很好用:
./script.sh #(mail arrives in my box)
从 php 这很好用:
shell_exec('./phpsc.sh'); // (mail arrives in my box)
从终端这很好用:
at -f phpsc.sh now + 5 minute
# (job created, mail arrives in my box after 5 minutes)
从 php 这将不起作用:
shell_exec('at -f phpsc.sh now + 5 minute'); //:( :(
即使我将at
命令放入脚本并从 php 运行脚本,该at
命令也会被忽略:(