On 15 November 2010 04:12, Laxmihari <laksh.ne...@gmail.com> 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 ?

Open you terminal-

filtron% cat <<EOF > run.sh
#!/bin/sh
`which xterm` -e `which python`
EOF
filtron% chmod +x run.sh

<double-click in your file manager>

> i tried it also with other compiler also , but same problem repeats ..
> And similar problem with also java program when javac compiler is
> used...

The usual above rules applies - wrap it up in a shell script whenever
you'd want to run in.

--
Regards
Ishwor Gurung
Key id:0xa98db35e
Key fingerprint:FBEF 0D69 6DE1 C72B A5A8  35FE 5A9B F3BB 4E5E 17B5

-- 
FOSS Nepal mailing list: foss-nepal@googlegroups.com
http://groups.google.com/group/foss-nepal
To unsubscribe, e-mail: foss-nepal+unsubscr...@googlegroups.com

Mailing List Guidelines: 
http://wiki.fossnepal.org/index.php?title=Mailing_List_Guidelines
Community website: http://www.fossnepal.org/

Reply via email to