run command inside bash script code example
Example 1: how to execute a bash script in terminal
$ chmod +x fileName
$ ./fileName
Example 2: run bash command perl
system("sh", "script.sh", "--help" );
system("sh script.sh --help");
$ chmod +x fileName
$ ./fileName
system("sh", "script.sh", "--help" );
system("sh script.sh --help");