#!/bin/bash ido=`cat /var/www/hosting/archline.hu/www/public/render/utolso.txt` utolso=`date --date "$ido" '+%s'` most=`date '+%s'` mostido=`date '+%Y-%m-%d %H:%M:%S'` let mostmin3=$most-180 if [ $mostmin3 -gt $utolso ]; then #`echo "Nem megy a render szerver, utolso idopont: $ido" | mail -s "Render szerver hiba" -c bodnart@invitel.hu bodnart@cadline.hu` oke="Hiba" else #`echo "Megy a render szerver, utolso idopont: $ido" | mail -s "Render ell. idozito teszt" -c eszter@cadline.hu sztikee@gmail.com` oke="OK" fi `echo -e "$oke: $mostido -- utolso: $ido" >> /var/www/hosting/archline.hu/www/maintenance/render/log.txt` # 2 oranal regebbi kepek torlese a tempbol `find /var/www/hosting/archline.hu/www/public/render/temp/ -maxdepth 1 -type f -amin +120 -amin -240 -name "*.bmp" -exec echo {} \; -exec rm {} \; >> /var/www/hosting/archline.hu/www/public/render/temp/000fajlok.txt`