crontab - jojo's blog--快乐忧伤都与你同在 - BlogJava
2012-12-03 13:58
260 查看
crontab - jojo's blog--快乐忧伤都与你同在 - BlogJava
crontab Once inside the editor, you will want to refer to the fields above in order to schedule a cron job for the appropriate time. Here are some examples:
*/5 * * * * /home/adam/script.sh will execute script.sh every 5 minutes. This will set crontab every 5 minutes.
59 23 * * 1-5 /home/adam/script.sh will execute script.sh every day, monday through friday, at 11:59 p.m.
0 0 * * 0 /home/adam/script.sh will execute script.sh once a week. You could also specify @weekly instead of 0 0 * * 0.
0 23 1 * * /home/adam/script.sh will execute script.sh once a month, on the first, at 11:00 PM. You could also specify @monthly in place of 0 23 1 * *.
*/5 * * * * /home/adam/script.sh will execute script.sh every 5 minutes. This will set crontab every 5 minutes.
59 23 * * 1-5 /home/adam/script.sh will execute script.sh every day, monday through friday, at 11:59 p.m.
0 0 * * 0 /home/adam/script.sh will execute script.sh once a week. You could also specify @weekly instead of 0 0 * * 0.
0 23 1 * * /home/adam/script.sh will execute script.sh once a month, on the first, at 11:00 PM. You could also specify @monthly in place of 0 23 1 * *.
相关文章推荐
- jdk小工具jps介绍 - Sky's blog - BlogJava
- 在Windows中实现Java本地方法(JNI) - JMeteor????S Blog - CSDNBlog
- http://blog.csdn.net/qh_java
- linux下crontab定时执行java程序,java程序不执行的问题
- Java程序和C程序的相互调用http://blog.csdn.net/yasi_xi/article/details/8437628
- Java基础入学考blog-1
- Java基础入学考blog-8
- http://www.blogjava.net/dongbule/archive/2010/08/23/329627.html
- 正则表达式中的特殊字符---转载(http://www.blogjava.net/onejavaer/)
- static class 静态类(Java)http://blog.sina.com.cn/s/blog_605f5b4f0100zbps.html
- JAVA代码编写的30条建议 选择自 chinaewolf 的 Blog
- linux下crontab定时执行java程序,java程序不执行的问题
- Oracle内建包UTL_FILE使用说明(转 http://www.blogjava.net/liwei/archive/2007/01/10/92902.aspx)
- 用Graphviz来画图 1[转自JavaBlog]
- 实 现JAVA 的 动 态 类 载 入 机 制 选择自 magicwizard 的 Blog
- 整合PDF和Java技术 选择自 chensheng913 的 Blog
- JAVA操作数据库----- http://blog.sina.com.cn/andyfang
- 各种数字类型转换成字符串型--JAVA(选择自 whoopee 的 Blog )
- 虽然忧伤,但依旧快乐!
- java的一些基础知识(引用BlogJava 落花飞雪)