crontab每月一号定时启动程序,启不来

littleline 2004-08-25 11:09:03
我的程序内容:
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.3499 installed on Wed Aug 25 11:10:52 2004)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
* * 1 * * /sbin/delonemonth
已经把delonemonth考到了/sbin/下,但是我把系统时间改成某个月1号时,程序并未被调用!
...全文
717 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
blh 2004-08-25
  • 打赏
  • 举报
回复
1. Check if you setup it by using the command "crontab -e"? If not, you should setup it by that command wihle not directly modify the relational configuration file.

2. Check if /sbin/delonemonth file has the privilege of execution.
noway 2004-08-25
  • 打赏
  • 举报
回复
是不是0点执行的,那把日期改到31的23点59分呢
littleline 2004-08-25
  • 打赏
  • 举报
回复
自己顶一下
ckc 2004-08-25
  • 打赏
  • 举报
回复
你这个需求用
anacron
似乎更好点
spiderww 2004-08-25
  • 打赏
  • 举报
回复
好象不能只给* * 1 * *吧,我觉得至少也要指定个时分,给个30 12 1 * *看看12点30分是否执行(猜测,手头无环境)

23,116

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧