[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/scripts/ -> temp-cleanup.cron (source)

   1  #!/bin/sh
   2  
   3  # This is an example cron job shell script which will clean up any
   4  # temporary files which may get stranded by Horde users in the
   5  # webserver's temporary directory.
   6  #
   7  # You may have to change /tmp to another location depending on your
   8  # configuration.  Other modifications may also be required.
   9  #
  10  # This script is provided as-is and is to be used at your own risk. 
  11  # Horde and the authors accept no responsibility for any damages or
  12  # loses caused by this script whether indirect, incidental, or
  13  # consequential,  whether or not such damages could be forseen.
  14  #
  15  # How to use this script will depend on your system.  For some systems,
  16  # it is as simply as putting this file in the /etc/cron.daily directory.
  17  # For others, more or different setup will be required.  See the
  18  # documentation for your systems job scheduler for more information.
  19  #
  20  
  21  # The location of PHP's temporary directory
  22  TMP_DIR=/tmp
  23  
  24  
  25  # MSWord attachments (generated by the MSword viewer)
  26  for MSWORD_FILE in `find $TMP_DIR -type f -name msword\* -ctime +2 `; do
  27      rm -f $MSWORD_FILE
  28  done
  29  
  30  # IMP attachments
  31  for IMP_FILE in `find $TMP_DIR -type f -name impatt\* -ctime +2 `; do
  32      rm -f $IMP_FILE
  33  done
  34  
  35  # Klutz temporary files
  36  for KLUTZ_FILE in `find $TMP_DIR -type f -name Klutz\* -ctime +2 `; do
  37      rm -f $KLUTZ_FILE
  38  done
  39  
  40  # Spell checking temporary files
  41  for SPELL_FILE in `find $TMP_DIR -type f -name spell\* -ctime +2 `; do
  42      rm -f $SPELL_FILE
  43  done
  44  
  45  # VFS temporary files
  46  for IMP_FILE in `find $TMP_DIR -type f -name vfs\* -ctime +2 `; do
  47      rm -f $IMP_FILE
  48  done


Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7