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

Ben Maurer bmaurer@users.sourceforge.net
Tue, 06 Apr 2004 18:17:37 -0400


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.