{"id":4062,"date":"2019-02-12T16:21:55","date_gmt":"2019-02-12T16:21:55","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/usage-help-manual\/1-utilities-and-user-commands\/usercron\/"},"modified":"2026-02-11T14:46:14","modified_gmt":"2026-02-11T19:46:14","slug":"usercron","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/10-standard-services\/usercron\/","title":{"rendered":"usercron"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<\/div>\n<dl>\n<dd>\n<p>Write and activate a cron script based on a user-editable file<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>usercron<\/strong> &lt;filename&gt;<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<div>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/> <\/colgroup>\n<tbody>\n<tr>\n<td>\n<p>filename<\/p>\n<\/td>\n<td>\n<p>Specify the input filename.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/dd>\n<\/dl>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<p><strong>usercron<\/strong> example_file<\/p>\n<\/dd>\n<\/dl>\n<p style=\"padding-left: 40px;\">The following is an example file<\/p>\n<div style=\"padding-left: 40px;\">################################# \u00a0<br \/>\nexample\u00a0user\u00a0cron\u00a0spec \u00a0<br \/>\ncleanup\u00a0specs \u00a0<br \/>\n\u00a0file_filter\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0max_age(days)\u00a0max_files\u00a0disk_capacity_limit\u00a0recursive \u00a0<br \/>\n\u00a0<br \/>\n\/data\/compressed\/a*.hst\u00a014\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a01000\u00a0\u00a0\u00a0\u00a0\u00a0\u00a070%\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NO \u00a0<br \/>\n\/data\/PC_format\/b*\u00a0\u00a0\u00a0\u00a0\u00a0\u00a060\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a01000\u00a0\u00a0\u00a0\u00a0\u00a0\u00a080%\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YES \u00a0<br \/>\n\u00a0<br \/>\n$End\u00a0of\u00a0cleanup\u00a0parameters \u00a0<br \/>\nenter\u00a0standard\u00a0cron\u00a0format\u00a0specs\u00a0below \u00a0<br \/>\nmin(0-59)\u00a0hour(0-23)\u00a0date(1-31)\u00a0month(1-12)\u00a0day(0-6\u00a0with\u00a00=Sun)\u00a0command \u00a0<br \/>\n\u00a0<br \/>\n59\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a023\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0*\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0*\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0*\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/bin\/xxx \u00a0<br \/>\n$End \u00a0<br \/>\n################################### \u00a0<br \/>\n\u00a0<br \/>\nReference &#8216;use cleanup&#8217; for more information on cleanup specs. \u00a0<br \/>\nAll\u00a0cleanup\u00a0specs\u00a0entered\u00a0will\u00a0be\u00a0executed\u00a0once\u00a0every\u00a0hour. \u00a0<\/div>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>The user running this task must be allowed to create cron jobs. These users are managed in the \/etc\/cron.allow file.<\/p>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<dl>\n<dd>\n<p><a href=\"\/index.php\/usage-help-manual\/10-standard-services\/cleanup\/\">cleanup<\/a>, <a href=\"https:\/\/cyflex.com\/wp-content\/uploads\/Usercron-Utility.pdf\">Usercron Utility<\/a><\/p>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Write and activate a cron script based on a user-editable file Enter: usercron &lt;filename&gt; Where: filename Specify the input filename. Example: usercron example_file The following is an example file ################################# \u00a0 example\u00a0user\u00a0cron\u00a0spec \u00a0 cleanup\u00a0specs \u00a0 \u00a0file_filter\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0max_age(days)\u00a0max_files\u00a0disk_capacity_limit\u00a0recursive \u00a0 \u00a0 \/data\/compressed\/a*.hst\u00a014\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a01000\u00a0\u00a0\u00a0\u00a0\u00a0\u00a070%\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NO \u00a0 \/data\/PC_format\/b*\u00a0\u00a0\u00a0\u00a0\u00a0\u00a060\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a01000\u00a0\u00a0\u00a0\u00a0\u00a0\u00a080%\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YES \u00a0 \u00a0 $End\u00a0of\u00a0cleanup\u00a0parameters \u00a0 enter\u00a0standard\u00a0cron\u00a0format\u00a0specs\u00a0below \u00a0 min(0-59)\u00a0hour(0-23)\u00a0date(1-31)\u00a0month(1-12)\u00a0day(0-6\u00a0with\u00a00=Sun)\u00a0command \u00a0 \u00a0 59\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a023\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0*\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0*\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0*\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/bin\/xxx \u00a0 $End \u00a0 [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1950,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-4062","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/4062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=4062"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/4062\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1950"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=4062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}