+Comment of crontab(5) entry for automatic per-year "VarSym" generation.
authorshort <>
Fri, 25 Feb 2005 21:46:35 +0000 (21:46 +0000)
committershort <>
Fri, 25 Feb 2005 21:46:35 +0000 (21:46 +0000)
inzerat-submit.php

index 01ae365..5a6c20c 100644 (file)
@@ -120,6 +120,8 @@ if (!isset($confirm)) {
        create table energie_inzerat (varsym int not null auto_increment primary key,contents text null);
        alter  table energie_inzerat add index (varsym);
        insert into  energie_inzerat (varsym) values (20025000);
+ *** crontab(5) entry:
+       0 0 1 1 *       mysql -ushort -p`cat ~/priv/mysql.short.pwd ` -e 'insert into energie_inzerat (varsym) values (year(curdate())*10000+5000);' short
 ***/
 
 db_query("insert into $tb_inzerat (contents) values('".addslashes($out)."')");