Hi, You have to compile C# code using mcs that will result in a .exe assembly that can be executed using mono:
$mcs some.cs $mono some.exe If you prefer you can write a shell script that will do this as a single step. Kornél ----- Original Message ----- From: "Abe Gillespie" <[EMAIL PROTECTED]> To: "MonoList" <[email protected]> Sent: Friday, November 11, 2005 1:02 AM Subject: [Mono-list] Scripting the Linux OS with Mono Hey all, I was wondering if there's any easy way to run C# scripts in Mono. I'm fairly new to Linux (just at about a year) and I'd like to avoid learning yet another language (Perl, sh, etc.). Has anyone written a .Net program that takes a file as input and runs that code? Perhaps Mono can do this natively? How cool would it be to have startup scripts written in C#?! Thanks for the help as always. -Abe _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
