#!/bin/sh find /home/someuser/moj_trash_folder/ -cmin +180 -exec rm -rf '{}' \; echo "Laku noc" | mail -s "laku noc" someone@somewhere.com