If i chmod +x a script, then copy the script to another computer, will it be an executable over there too?
by arifd86 from LinuxQuestions.org on (#5EQ8V)
I have a collection of scripts, and then a master script that I call via a keystroke that executes a GUI with a button for each script.
If I change computers do I have to remember to chmod them all again? Or should I just have the master script chmod them every time I call the master script?
Additionally, I have a python script that needs sudo permissions. If I run the python script from the shell prompt i can just sudo the python script. But I can't do that so easily from my master script, because it is GUI based. So how should I manage that? Not all of my scripts need sudo so I can't just blanket give sudo permissions to all of them, and I guess my master script can't know which ones need sudo.


If I change computers do I have to remember to chmod them all again? Or should I just have the master script chmod them every time I call the master script?
Additionally, I have a python script that needs sudo permissions. If I run the python script from the shell prompt i can just sudo the python script. But I can't do that so easily from my master script, because it is GUI based. So how should I manage that? Not all of my scripts need sudo so I can't just blanket give sudo permissions to all of them, and I guess my master script can't know which ones need sudo.