Article Title: How to regularly run Java programs on Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Run crontab-e to edit a job.
For example
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 ), |
Correct the preceding example:
30 0 ***/home/your_login/bin/java_program
It is the java_program in the/home/your_login/bin directory that runs at every day.
* Indicates all. For example, if you change the value 0 in the previous example to *, you can run the subsequent program at 30 o'clock every hour.
#! /Bin/sh
Cd/home/your_dir
/Usr/local/jdk1.5.0 _ 03/bin/java/home/your_login/yourClass> error. log
Then, the cron job
30 0 ***/home/your_login/bin/ksh_script