I have a python script set to go off every minute in my crontab file:
*/1 * * * * ~/ticker.py
I've set permissions of ticker.py with chmod +x ticker.py to make the file executable.
I am still getting /bin/sh: /home/ec2-user/ticker.py: Permission denied in my /var/spool/mail/ec2-user mail file.
I'm using an Amazon Linux EC2 instance. I appreciate any help with this. Thank you
Found out the fix. Super simple but unsure why the #!/usr/bin/env shebang didn't fix it in the first place.
I replaced */1 * * * * ~/ticker.py with */1 * * * * python ~/ticker.py.
Thanks for the input.
Getting crontab "permission denied" on Python script even though it has executable permissions