The script runs from command line but crontab fails
问题 I'm still learning Bash and I'm having a problem with my script. I want to filter some calls with this script that is analyzing a call log, every 2 minutes as cronjob. The problem is that I can run it manually but it fails when run automatically from cron. I don't know why. It shouts something about permissions, so I kinda patched the script, so if it seems dirty I'm sorry. #!/bin/bash YESTERDAY=$((`date +'%s'`-86400)) AYER=`date -d "1970-01-01 $YESTERDAY sec" +"%Y%m%d"` FECHA=`date +"%Y%m%d"