View Single Post
coderus's Avatar
Posts: 6,436 | Thanked: 12,700 times | Joined on Nov 2011 @ Ängelholm, Sweden
#8
you dont understand. you not need to set executable to script. you can execute shell, or perl, or python, whatever with option reading and executing script command from file. its same what operating system does when executing your script file if it have executable flag and shebang line (#!/bin/sh i.e.).

for example:
you have /home/user/MyDocs/script.sh
Code:
#!/bin/sh
echo "Hello!"
you cant set chmod +x as usual, but you always can launch shell with your script
Code:
sh /home/user/MyDocs/script.sh
in this way your script dont need to be executable.
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 4 Users Say Thank You to coderus For This Useful Post: