What is the difference between running a script as
./scriptname.sh and sh scriptname.sh
Answer / vidhu
while running the script using this "./" script run from
curent location we have to give executable permision to the
script file
By default file contains 644 permissions there is no
execute permission while running it shows error
use `chmod` to give execute permission and run
where as "sh" it runs the script with the help of default
shell
Is This Answer Correct ? | 5 Yes | 4 No |
What are the different shells available?
whta is the use of "exec" command?
What is difference between shell and bash scripting?
What are the different methods available to run a shell script?
How do I run a powershell script?
what is the difference between writing code in shell and editor?
Write a shell script to check whether a number is Armstrong number or not?
wats the she bang statment with syntax?
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com
Is cmd a shell?
How do you schedule a command to run at 4:00 every morning?
What is the difference between grep and egrep?