I am a lot confused about this behavior. Each time I run this script from terminal, it works fine, but it fails once is executed from a crontab. Inside the script yo