are they same " sh execution " and " ./ execution "
hi ,
i created a script file named myscript.sh
i ran this by typing sh myscript.sh and i got my output
but,
when i tried to execute by typing ./myscript.sh i received permission denied error
i gave permission as chmod 777 myscript.sh
then i executed by typing ./myscript.sh . It worked fine
so i wanted to know whether using sh and ./ with permissions are same.. ?
or did it work for only this.. are there any differences ???
regards
shravee
Last edited by shravee; 04-17-2010 at 12:07 AM.
|