免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2679 | 回复: 18
打印 上一主题 下一主题

crontab ?? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-05-17 10:40 |只看该作者 |倒序浏览
is somebody know where the default contab file located at?  it is because i found i revised the crontab file and activiated successuflly, but it will resume to the default one after the server or computer reboot.  

i don't know where the default con file located at .. so pls help me ......

论坛徽章:
0
2 [报告]
发表于 2010-05-17 10:44 |只看该作者
系统设定  /etc/crontab

论坛徽章:
0
3 [报告]
发表于 2010-05-17 10:53 |只看该作者
系统设定  /etc/crontab
lkk2003rty 发表于 2010-05-17 10:44


thanks

but under /etc, there is no crontab file found???

/etc
ls -l

cron -> ../usr/sbin/cron
cron.d
cron.deny

do u hv an idea which file is???

论坛徽章:
0
4 [报告]
发表于 2010-05-17 10:55 |只看该作者
what's content of the file "../usr/sbin/cron" ?
is it like this ?
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

论坛徽章:
0
5 [报告]
发表于 2010-05-17 10:56 |只看该作者
Do you know the command "find"?

论坛徽章:
0
6 [报告]
发表于 2010-05-17 10:58 |只看该作者
这是china吗?

论坛徽章:
0
7 [报告]
发表于 2010-05-17 10:59 |只看该作者
回复 4# lkk2003rty


no file content specified on the file
the file start at:

# cronjob
0, 30 * * * * cd /temp/a.sh
18, 3 * * * * cd /temp/b.sh

论坛徽章:
16
IT运维版块每日发帖之星
日期:2015-08-24 06:20:00综合交流区版块每日发帖之星
日期:2015-10-14 06:20:00IT运维版块每日发帖之星
日期:2015-10-25 06:20:00IT运维版块每日发帖之星
日期:2015-11-06 06:20:00IT运维版块每日发帖之星
日期:2015-12-10 06:20:00平安夜徽章
日期:2015-12-26 00:06:302016猴年福章徽章
日期:2016-02-18 15:30:34IT运维版块每日发帖之星
日期:2016-04-15 06:20:00IT运维版块每日发帖之星
日期:2016-05-21 06:20:00综合交流区版块每日发帖之星
日期:2016-08-16 06:20:002015七夕节徽章
日期:2015-08-21 11:06:17IT运维版块每日发帖之星
日期:2015-08-14 06:20:00
8 [报告]
发表于 2010-05-17 11:03 |只看该作者
try  "which crontab"

论坛徽章:
0
9 [报告]
发表于 2010-05-17 11:04 |只看该作者
locate crontab

论坛徽章:
0
10 [报告]
发表于 2010-05-17 11:05 |只看该作者
Do you know the command "find"?
spocl 发表于 2010-05-17 10:56


yes .. but i don't know find what?

find . -name ???   could you suggesting me pls?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP