Hello,
sorry for my questions about that below script but i have an error that i don't understand.
It seems that my find command is not working fine but for me the command is ok
Thanks for your help
=====================================
/usr/IBM/HTTPServer/apache_cache
/usr/IBM/HTTPServer/apache_cache/toto.txt
find: bad status-- �name
find: bad status-- �*�
find: bad status-- �mtime
find: bad status-- +1
find: bad status-- �exec
find: bad status-- rm
find: bad status-- {}
find: bad status-- ;
==========================================
#!/bin/sh
# About the script
#==============================================================================
# author : Vision IT Group
# version : 1.0
# date written : January 2014
# application : delete -mtime +1 files in the apache_cache
#==============================================================================
#
################################ PATH ###########################################
DATUM1="$(date +%y%m%d.%H%M%S)"
NAME="CacheIHS_Logs"
PATHCACHELOGS="/usr/IBM/HTTPServer/logs/"
LOG_FILE=$PATHCACHELOGS/$NAME.log
################################ CODE ###########################################
#echo "find files to delete in the cache"
#echo "---------------------------------"
find "/usr/IBM/HTTPServer/apache_cache" �name �*� �mtime +1 �exec rm {} \;
#Define Logfilename
#------------------
echo "Clear done ..."$DATUM1 >> $LOG_FILE
echo "---------------------------------------" >> $LOG_FILE