Hello all,
I just complied a dummy program which prints something on the terminal.
how do i go about this by double-clicking the executable and It should open up the terminal and run the program in it automatically.
The executable already has all the required permissions.
These are the commands which i have given so far
If i use ./hello it executes the program,but if i go to the file location and double click it,it opens up in a text editor.
I just complied a dummy program which prints something on the terminal.
how do i go about this by double-clicking the executable and It should open up the terminal and run the program in it automatically.
The executable already has all the required permissions.
These are the commands which i have given so far
Code:
$ gcc helloc.c -o hello
$chmod 777 hello
$ ls
hello hello.c
sudo chmod 777 hello