0 * 2- * * echo "haha" 问下这个crontab 可以表示2号到月底 每天0时执行 echo “haha”? 如果不是应该怎么实现 crontab 有取非的操作吗 ? 比如[^1] 就想解决2号到月底,月底可能 28 29 30 31。 不确定是否可以写成2-31(当月没31号的时候)
本帖最后由 qinjuan710 于 2010-09-07 09:07 编辑 直接通过crontab -e写入可以执行,但是通过php写入就不能执行,为什么? 通过php写入后,再通过crontab -e打开改改执行的时间,到点就又执行了
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 ......
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 里写还不行啊。。。郁闷。。
系统的crontab : /etc/cron 用户的crontab : /var/spool/cron crontab是一个很方便的在unix/linux系统上定时(循环)执行某个任务的程序 使用cron服务,用 service crond status 查看 cron服务状态,如果没有启动则 service crond start启动它, cron服务是一个定时执行的服务,可以通过crontab 命令添加或者编辑需要定时执行的任务: crontab -u //设定某个用户的cron服务,一般root用户在执行这个命令的时候需要...
请问一下怎么定义一个每30分钟计划任务呢?不是用crontab -e 的命令创建。 我看到 /etc/cron.hourly 和/etc/cron.daily , /etc/cron.weekly。/etc/cron.monthly就是没有分钟的。有点不解。 望高手指点。我用的是redhat 5.4
# 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...
# 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...
使用权限 : 所有使用者 使用方式 : crontab [ -u user ] file crontab [ -u user ] { -l | -r | -e } 说明 : crontab 是用来让使用者在固定时间或固定间隔执行程序之用,换句话说,也就是类似使用者的时程表。-u user 是指设定指定 user 的时程表,这个前提是你必须要有其权限(比如说是 root)才能够指定他人的时程表。如果不使用 -u user 的话,就是表示设定自己的时程表。 ...