Try using this for crontab user:
@hourly DISPLAY=:0 xterm -e /path/to/my/script.sh
It will open (more often) xterm with your script execution and exit after the script exits. Of course, you must change the @hourly part to suit your needs.
Renato zannon
source share