On Sun, Nov 14, 2010 at 10:57 PM, Laxmihari <[email protected]> wrote:
> hello everybody , > > i wrote a simple c code and compiled it with gcc compiler , and it > runs by doing > > $./file-name > > how can i make it to run when double clicked on it ? > i tried it also with other compiler also , but same problem repeats .. > And similar problem with also java program when javac compiler is > used... > > plz kindly respond me at your earliest convenience .. > i'm assuming that by double clicking the file, u mean at a file browser (like nautilus). if your program is gui-based, it should open as expected. but if your program is commandline based, write a shell script that runs your program and set the file as executable. double click it (in nautilus) and click 'Run in Terminal'. ~jwalanta -- FOSS Nepal mailing list: [email protected] http://groups.google.com/group/foss-nepal To unsubscribe, e-mail: [email protected] Mailing List Guidelines: http://wiki.fossnepal.org/index.php?title=Mailing_List_Guidelines Community website: http://www.fossnepal.org/
