I have a shell script that runs automatically following a 'hotplug' event.
Leaving the hotplug to do its thing results in a 'bad interpereter' error. If I try to run the script just using the path ie
it gives me the same error.
However using the bash command then it works ok. This makes me assume that the error is due to the system not understanding the script is a bash script
The thing is that there are other scripts in that directory, doing the same job but for differnt equipment, that do not need the bash command to run.
What do I need to do to get the script to run impliclty as a bash script rather than being explicit with the bash statement.
Any help would be great