php crontab(php脚本在crontab下的执行)

php crontab(php脚本在crontab下的执行)

php crontab, 关于php脚本在crontab下的执行相关

给你看一个文件/etc/crontab, 也许你就知道如何应用了

# cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

# test php crontab
30 * * * * root /usr/local/bin/php -q /root/test.php


欢迎转载本文,请注明来自:http://www.linuxsense.org

TAG: crontab php
发布: 2007-12-03 11:49    作者: admin    来源: 本站原创    查看: 87次

推荐给好友 上一篇 | 下一篇

查看全部4条评论

最新评论

  • 删除 引用 Guest (2008-6-11 13:51:50, 评分: 0 )

    如果遇到调用有相对路径PHP文件,该办法不能实现
  • 删除 Guest (2008-5-09 09:37:20, 评分: 5 )

    5
  • 删除 Guest (2008-4-03 10:48:29, 评分: 5 )

    5
  • 删除 Guest (2008-4-01 19:53:04, 评分: -1 )

    -1
 

评分:0

我来说两句

seccode