In the Linux, how to execute an executable / non-executable file ?
. myfile.sh --- works, why?
sh myfile.sh -- doesn't work, why ?
Thanks
In the Linux, how to execute an executable / non-executable file ?
. myfile.sh --- works, why?
sh myfile.sh -- doesn't work, why ?
Thanks
./myfile.sh
--> if the file is+x
Otherwise it wont run.
sh ./myfile.sh
should work though