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 |
Hi Friends, I am currently Undergoing Course On Testing.I am Planning To Keep Fake Resume.Can any One tell me the ways to Prepare i.e, Real Time experience For Manual Testing. With Regards, Vikram
How to get script name inside a script?
How to set an array in linux?
Why is the use of shell script?
What is awk in shell scripting?
How to print some text on to the screen?
Where cron file kept?
What is the use of echo in shell script?
What is batch file programming?
I Forgot My Windows Vista Password! How Can I Find My Windows Lost Password?
How to enable the shell to know what program should be run to interpret the script?
Explain about debugging?