Sample Header Ad - 728x90

How to start a bash script on Oracle Linux

2 votes
1 answer
989 views
What is the right way to start a bash script on **Oracle Linux**? on a normal Linux server I use ./script.sh But here is what I got when I do the same on Oracle Linux --- [user@server ~]$ ./script.sh bash: ./script.sh: Permission denied --- The permissions are correct --- [user@server ~]$ ll script.sh -rwxr-x--x 1 user oraexpl 317 Jul 4 15:42 script.sh --- It works ok if I omit the "/" character --- [user@server ~]$ . script.sh It works --- It works ok if I execute it with bash --- [user@server ~]$ bash script.sh It works --- In my script, I do have the Shebang /bin/bash **Is this behavior normal?** Thanks for your feedback
Asked by Angel115 (223 rep)
Jul 4, 2022, 02:16 PM
Last activity: Jul 4, 2022, 07:00 PM