I want to restrict users who want to use a specific script to follow a specific format of execution and print an error message on screen was they do not follow it. I want users to run my script in the below format only$ bash script.shIf they try to execute in other formats like,$ sh script.sh$./script.shI want to print an error message with instructions on how to execute the script
How to control mode of execution of a shell script?
shell script