User Tools

Site Tools


wiki:use_cron_at_license_period_end

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:use_cron_at_license_period_end [2017/02/01 07:51] walkeradminwiki: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:
 -              - -              -
 |              | |              |
-|              +----- day of week (0 - 6) (Sunday=0)+|              +----- day of week (0 - 6) (Where Sunday)
 |           +------- month (1 - 12) |           +------- month (1 - 12)
-|         +--------- day of        month (1 - 31)+|         +--------- day of month (1 - 31)
 |     +----------- hour (0 - 23) |     +----------- hour (0 - 23)
 +------------- min (0 - 59) +------------- min (0 - 59)
 </file> </file>
 +\\ 
 +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).
 +\\ 
 +<file>
 +crontab -e
 +</file>
 +\\ 
 +Press <color red>i</color> to enter <color red>i</color>nsert mode.
 +\\ 
 +\\ 
 +Copy in the following line.
 +\\ 
 +0 0 15 6 * /opt/envivio/muse/bin/envivio_muse_uninstall.sh
 +\\ 
 +Use :wq to save and exit.
 +\\ 
 +\\ 
 +
 +----
 +==== Cron Job Explanation ====
 +\\ 
 +The Cron job we just configured has the following syntax.
 +\\ 
 +<file>
 +0 0 15 6 * /opt/envivio/muse/bin/envivio_muse_uninstall.sh
 +</file>
 +\\ 
 +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)