I have one Shell script file. Inside it, I have create one text file in same folder where sh file is placed.
I want to run sh file on double click. When user double click on sh file then sh file will be execute and one text file should be generated in same dir.
I know i can make executable file using: chmod +x myfile.sh
but problem is:
when I run this file on other Machine or same Machine with different drive, I Need to make again executable. I want behavior just like "exe file" in Windows.
Can you right click the file and select
properties. Check the box that saysAllow executing file as a program.