当前位置: 技术问答>linux和unix
请问怎样在linux服务器上定时运行自己编的java程序!(用cron?)
来源: 互联网 发布时间:2014-12-25
本文导语: 请问怎样在linux服务器上定时运行自己编的java程序! 用cron?怎么用啊,我是初学者! | 运行crontab -e编辑一个job。例如, 0 30 * * * /home/your_login/bin/java_program | | | | | | | | | | | | |...
请问怎样在linux服务器上定时运行自己编的java程序!
用cron?怎么用啊,我是初学者!
用cron?怎么用啊,我是初学者!
|
运行crontab -e编辑一个job。例如,
0 30 * * * /home/your_login/bin/java_program
| | | | |
| | | | |
| | | | —day of the week (0-6 with 0=Sunday).
| | | —— month of the year (1-12),
| | |_____day of the month (1-31),
| |
| |____hour (0-23),
|
minute (0-59),
BTW, run "crontab -l" to check your corn job. More info, please man crontab.
0 30 * * * /home/your_login/bin/java_program
| | | | |
| | | | |
| | | | —day of the week (0-6 with 0=Sunday).
| | | —— month of the year (1-12),
| | |_____day of the month (1-31),
| |
| |____hour (0-23),
|
minute (0-59),
BTW, run "crontab -l" to check your corn job. More info, please man crontab.