日期:2014-05-16  浏览次数:20651 次

linux定时执行脚本
5 0 * * * cd ~/local/tomcat/webapps/ROOT/WEB-INF/classes; source ~/.bash_profile; /usr/java/jdk1.6.0_26/bin/java com.bitbao.cm.cron.score.AddCircle >> ~/logs/cron/score/AddCircle.log  2>&1
# 00:10 执行
10 0 * * * cd ~/local/tomcat/webapps/ROOT/WEB-INF/classes; source ~/.bash_profile; /usr/java/jdk1.6.0_26/bin/java com.bitbao.cm.cron.score.AddContact >> ~/logs/cron/score/AddContact.log  2>&1
# 00:15 执行
15 0 * * * cd ~/local/tomcat/webapps/ROOT/WEB-INF/classes; source ~/.bash_profile; /usr/java/jdk1.6.0_26/bin/java com.bitbao.cm.cron.score.AddJournalMonth >> ~/logs/cron/score/AddJournalMonth.log  2>&1
# 00:20 执行
20 0 * * * cd ~/local/tomcat/webapps/ROOT/WEB-INF/classes; source ~/.bash_profile; /usr/java/jdk1.6.0_26/bin/java com.bitbao.cm.cron.score.AddJournalWeek >> ~/logs/cron/score/AddJournalWeek.log  2>&1
# 每周一的00:30执行
30 0 * * 1 cd ~/local/tomcat/webapps/ROOT/WEB-INF/classes; source ~/.bash_profile; /usr/java/jdk1.6.0_26/bin/java com.bitbao.cm.cron.score.Login >> ~/logs/cron/score/Login.log  2>&1
 
# 系统日程
* */1  * * * cd ~/local/tomcat/webapps/ROOT/WEB-INF/classes; source ~/.bash_profile; /usr/java/jdk1.6.0_26/bin/java com.bitbao.cm.cron.calendar.SysCalendarCron >> ~/logs/cron/calendar/SysCalendarCron.log  2>&1
2为不输出错误信息