Removed -it. Now script can run in crontab.