[Mono-docs-list] Question about EXE binaries and kernels?

Fawad Halim fawad@fawad.net
Tue, 06 Apr 2004 17:29:28 -0500


On a related note, wouldn't it make sense to bundle a simple binfmt init 
script with mono? I'm sure we can come up with a script generic enough 
to work across most of the major distros.

-fawad

Ben Maurer wrote:

>On Tue, 2004-04-06 at 17:57, Aaron Weber wrote:
>  
>
>>Thanks for the explanation. How's this sound?
>>
>>
>>The normal way to run a Mono application is to invoke it through the
>>interpreter, like so:
>>    
>>
>Caution. You probably dont mean an `interpreter'. Someone could get
>confused with interpreter vs jit.
>
>  
>
>>       #!/bin/sh
>>       /usr/bin/mono myprogram.exe
>>    
>>
>This will execute `myprogram.exe' that is located in the current working
>directory. You probably want an absolute path there. Or you could get
>the path of the script that is executing.
>
>Also, you want to put "$@" at the end so that it gets arguments.
>
>cat `which mcs` has a good example.
>
>_______________________________________________
>Mono-docs-list maillist  -  Mono-docs-list@lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-docs-list
>
>
>  
>