What is the difference between running a script as
./scriptname.sh and sh scriptname.sh
Answer Posted / 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 |
Post New Answer View All Answers
When should shell programming/scripting not be used?
What is a shell made of?
How does shell scripting work?
What is batch file programming?
i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..
How are shells born?
What is the command to find out users on the system?
How will you connect to a database server from linux?
What are the default permissions of a file when it is created?
Why is used in shell scripting?
How do I edit a .sh file?
What is sh in shell script?
How do I run a script on mac?
Why is the use of shell script?
Explain about the exit command?