Rule Definition
This rule searches all the scripts without interpretor access path.
Remediation
Try the increase the number of scripts having interpretor access path.
Violation Code Sample
You must put the following line on top as the first line of your shell script
Example: "#!/path/to/your/interpreter".
To find this path you can use the "which" command.
Example: $ which bash
/bin/bash
We edit our script and change it with this information as follows:
#!/bin/bash
echo "Hello! This is my hostname:"
hostname
Related Technologies
SHELL
Technical Criterion
Programming Practices - Structuredness
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.