Creating executable files in Linux -


One thing I'm planning to do is writing (pain easy) Pearl scripts, and I run it Want to be able to make them explicitly without calling Pearl from the terminal? I appreciate that, to do this, I need to execute them permissions. To do this, it is quite easy with chmod, but it also looks like a slightly laborious extra step What I want is one of the two things:

First of all, if you save a file, Is there a way to set a flag? Currently I am experimenting with GEDT and Ganyi, but if this is the capacity, then it will be ready to switch to the same - (or better) featured editor.

To deny it, is there a way to declare that all files created in a particular directory should have Execute Permissions?

My Umaska ​​is set to 022, which is okay, as far as I understand, but it will appear that the files are created in the form of text files (with 666 default permissions) executable files Instead (with 777 default permissions)

Maybe I am just getting lazy, but I think there should be a more convenient way to make each script.

Make the file executable:

chmod + x file

Search for Perl's location:

which perl

should return something like this

Then add your script's RST line to the file:

# ! Path with "Path" / Up path

#! / Bin / perl

Then you can execute the file

./ file

there with path There may be some problems, so you can also change it ...


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -