0

I'm working with multiple scripts at a time, all in diferent languages and I'm tired of typing python3 main.py for python scripts and sh main.sh for shell

Not even mentioning c.

Basically something like this.

run main.py
run main.sh
run main.c
ikenas
  • 103

1 Answers1

1

I think you can create a file something like run.sh. Open with text editor and place your command to run this files in terminal like below example:

python main.py
gcc main.c
./main.sh

Depending on which source file to compile and run place the code in that run file. Then open properties and check for executable permissions. You can do this using terminal by this command

sudo chmod +rwx run file

Then open terminal and execute the run file as

./run file name

Commands in run file will be executed sequentially.