Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
My shell script runs from the command line, but fails in cronjob.
/bin/sh: asper.sh: Permission denied -rw-r--r-- asper.sh
I guess the permission should look like '-rwxr-xr--'
How can I change the permission to be like that?
chmod +x asper.sh
If you want permissions to look like -rwxr-xr--:
chmod 754 asper.sh
If you just want to add the execute bit, it's as easy as:
chmod +x asper.sh
. Also, this is not really a Stack Overflow question. Maybe superuser? Server fault?