#!/bin/bash while true; do find /4server/tmp -type f -atime +2 -delete find /4server/tmp -type d -empty -delete sleep 1d done