ChinaUnix.net
相关文章推荐:

crontab

每个月的1号定时执行脚本的crontab怎么写? 0 0 1 * * 是这样吗?

by tstianzy - Linux系统管理 - 2011-11-01 14:10:51 阅读(1502) 回复(5)

相关讨论

0 * 2- * * echo "haha" 问下这个crontab 可以表示2号到月底 每天0时执行 echo “haha”? 如果不是应该怎么实现 crontab 有取非的操作吗 ? 比如[^1] 就想解决2号到月底,月底可能 28 29 30 31。 不确定是否可以写成2-31(当月没31号的时候)

by kr_zhang - Shell - 2011-07-08 10:03:32 阅读(4291) 回复(11)

本帖最后由 qinjuan710 于 2010-09-07 09:07 编辑 直接通过crontab -e写入可以执行,但是通过php写入就不能执行,为什么? 通过php写入后,再通过crontab -e打开改改执行的时间,到点就又执行了

by qinjuan710 - BSD - 2010-09-07 13:28:38 阅读(3385) 回复(2)

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 ......

by xmi - Shell - 2010-05-17 12:59:39 阅读(2120) 回复(18)

crontab能不能调用at来进行crontab -e编辑

by wxhnichole - Linux系统管理 - 2010-03-23 17:05:34 阅读(1626) 回复(10)

crontab -e[code]A=`date +%Y%m%d` */2 * * * * /home/pana/3.txt >> excel.$A [/code]或者[code]*/2 * * * * /home/pana/3.txt >> excel.`date +%Y%m%d`[/code]竟然都无法得出excel.20100316,第一个得出的是excel.date +%Y%m%d.第2个报错。。。。 难道非得写脚本?? 直接在crontab 里写还不行啊。。。郁闷。。

by 709101040516 - Shell - 2010-03-16 12:05:36 阅读(2113) 回复(10)

系统的crontab : /etc/cron 用户的crontab : /var/spool/cron  crontab是一个很方便的在unix/linux系统上定时(循环)执行某个任务的程序   使用cron服务,用 service crond status 查看 cron服务状态,如果没有启动则 service crond start启动它,   cron服务是一个定时执行的服务,可以通过crontab 命令添加或者编辑需要定时执行的任务:   crontab -u //设定某个用户的cron服务,一般root用户在执行这个命令的时候需要...

by catlovemouse - Linux文档专区 - 2010-01-27 10:00:59 阅读(730) 回复(0)

请问一下怎么定义一个每30分钟计划任务呢?不是用crontab -e 的命令创建。 我看到 /etc/cron.hourly 和/etc/cron.daily , /etc/cron.weekly。/etc/cron.monthly就是没有分钟的。有点不解。 望高手指点。我用的是redhat 5.4

by goodwell18 - Linux系统管理 - 2009-12-01 13:48:28 阅读(1908) 回复(15)

# crontab -e Warning: Missing charsets in String to FontSet conversion Warning: Cannot convert string "-dt-interface system-medium-r-normal-s*utf*-*-*- Warning: Missing charsets in String to FontSet conversion Warning: Missing charsets in String to FontSet conversion Warning: Cannot convert string "-dt-interface user-medium-r-normal-s*utf*-*-*-*- Warning: Missing charsets in String to FontSet conv...

by libo9912 - Solaris - 2010-05-07 14:00:25 阅读(2298) 回复(4)

# crontab -e\r\nWarning: Missing charsets in String to FontSet conversion\r\nWarning: Cannot convert string \"-dt-interface system-medium-r-normal-s*utf*-*-*-\r\nWarning: Missing charsets in String to FontSet conversion\r\nWarning: Missing charsets in String to FontSet conversion\r\nWarning: Cannot convert string \"-dt-interface user-medium-r-normal-s*utf*-*-*-*-\r\nWarning: Missing charsets in St...

by libo9912 - Solaris - 2009-01-07 17:01:18 阅读(3083) 回复(1)

  使用权限 : 所有使用者      使用方式 :      crontab [ -u user ] file   crontab [ -u user ] { -l | -r | -e }      说明 :   crontab 是用来让使用者在固定时间或固定间隔执行程序之用,换句话说,也就是类似使用者的时程表。-u user 是指设定指定 user 的时程表,这个前提是你必须要有其权限(比如说是 root)才能够指定他人的时程表。如果不使用 -u user 的话,就是表示设定自己的时程表。     ...

by haichao_ - Linux文档专区 - 2008-11-27 19:09:40 阅读(450) 回复(0)