[MKDoc-commit] [1.6] dump each user's crontab nightly

bruno at mkdoc.demon.co.uk bruno at mkdoc.demon.co.uk
Thu Dec 2 15:40:26 GMT 2004


Log Message:
-----------
[1.6] dump each user's crontab nightly

Tags:
----
mkdoc-1-6

Modified Files:
--------------
    mkd/tools:
        install-details-gt.pl

-------------- next part --------------
Index: install-details-gt.pl
===================================================================
RCS file: /var/spool/cvs/mkd/tools/install-details-gt.pl,v
retrieving revision 1.21.2.17
retrieving revision 1.21.2.18
diff -Ltools/install-details-gt.pl -Ltools/install-details-gt.pl -u -r1.21.2.17 -r1.21.2.18
--- tools/install-details-gt.pl
+++ tools/install-details-gt.pl
@@ -211,6 +211,7 @@
     my $rand_60 = int (rand (60));
     my $rand_20 = int (rand (20));
     my $rand_abc = join ",", (0 + $rand_20), (20 + $rand_20), (40 + $rand_20);
+    $c->add_raw->value("0 6 * * * crontab -l > \$HOME/crontab");
     $c->add_raw->value("$rand_60 * * * * source $ENV{MKDOC_DIR}/mksetenv.sh && 010..indexer.pl 5400 >/dev/null");
     $c->add_raw->value("$rand_abc * * * * source $ENV{MKDOC_DIR}/mksetenv.sh && 030..rss_troubleshooter.pl 36 >/dev/null");
     $c->add_raw->value("$rand_60 11 * * * source $ENV{MKDOC_DIR}/mksetenv.sh && 031..rss_routine.pl");


More information about the MKDoc-commit mailing list