wiki:use_cron_at_license_period_end
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:use_cron_at_license_period_end [2017/02/01 07:51] – walkeradmin | wiki:use_cron_at_license_period_end [2023/03/09 22:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 17: | Line 17: | ||
---- | ---- | ||
- | ==== Using Cron ==== | + | ==== About Cron ==== |
\\ | \\ | ||
Cron (short for the Greek Chronos) is a utility that can run tasks on a time basis, be it once, or weekly, daily etc. The format of Cron is as follows: | Cron (short for the Greek Chronos) is a utility that can run tasks on a time basis, be it once, or weekly, daily etc. The format of Cron is as follows: | ||
Line 25: | Line 25: | ||
- | - | ||
| | | | ||
- | | | + | | |
| | | | ||
- | | | + | | |
| | | | ||
+------------- min (0 - 59) | +------------- min (0 - 59) | ||
</ | </ | ||
+ | \\ | ||
+ | For Cron to work, the current date/time on the host must be correct. Cron will run a simple command line that just uninstalls the relevant software product. | ||
+ | \\ | ||
+ | \\ | ||
+ | ---- | ||
+ | ==== Configure Cron ==== | ||
+ | \\ | ||
+ | To create a Cron job, use the following (you might get a warning if this is the first time Cron has been executed). | ||
+ | \\ | ||
+ | < | ||
+ | crontab -e | ||
+ | </ | ||
+ | \\ | ||
+ | Press <color red> | ||
+ | \\ | ||
+ | \\ | ||
+ | Copy in the following line. | ||
+ | \\ | ||
+ | 0 0 15 6 * / | ||
+ | \\ | ||
+ | Use :wq to save and exit. | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ---- | ||
+ | ==== Cron Job Explanation ==== | ||
+ | \\ | ||
+ | The Cron job we just configured has the following syntax. | ||
+ | \\ | ||
+ | < | ||
+ | 0 0 15 6 * / | ||
+ | </ | ||
+ | \\ | ||
+ | This means Cron will schedule this task for midnight (0 0) on the 15th June (15 6). Please note their is no year field in Cron, so you can't easily set a date that is more than a year in the future. | ||
+ | \\ | ||
+ | \\ |
wiki/use_cron_at_license_period_end.1485935479.txt.gz · Last modified: 2023/03/09 22:35 (external edit)