[Mono-dev] (no subject)

T Sureshkumar tsureshkumar at novell.com
Tue Sep 20 11:57:57 EDT 2005


>>> On Tue, Sep 13, 2005 at 12:17 pm, in message
<BAY5-F3A4059B8285FAA6428CC6BF9C0 at phx.gbl>, "Sridhar Kulkarni"
<sridharkulkarni at msn.com> wrote: 
> Hi,
> If we have executable hello.exe created from a cs file, then to run
the file 
> 
> we have to say "mono hello.exe". I have several exe which needds to
be 
> executed to start my app. Is there a way that the executable runs
just by 
> saying "hello"?...... Any script needs to be written for that.
Anybody any 
> idea?

Best is to wrap your program into a shell script

in minimal, it would be a shell script named "hello"

 #! /bin/sh 

/usr/bin/mono <your_program_path>/hello.exe "$@" 


Or you can use linux's binfmt utility to register mono as interpreter
for exe files. But, I would prefer above.

suresh.


> Regards,
> 
> _________________________________________________________________
> See him in the 'mustached' avatar in Mangal Pandey. 
> http://server1.msn.co.in/SP05/Mangalpandey/index.html Click here to
know all 
> 
> about the movie.
> 
> _______________________________________________
> Mono- devel- list mailing list
> Mono- devel- list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono- devel- list




More information about the Mono-devel-list mailing list