tags:

views:

658

answers:

1

Is there a good way to write F# scripts that execute stand-alone without compiling?
...As scripts that could be executed via task scheduler on a server? I assume the server would have the core F# libraries, but not Visual Studio installed.

Is there an F# equivalent to CS-Script or NScript, but not a hack (workaround).

+5  A: 
fsi --exec

will run all the files on the command line through the interactive console then exit.

nlucaroni
tyndall
Yes, there's also a zip distrib in case you want to install under linux or just don't wan't to use an msi.
Robert
yeah, VS2008 optional.
nlucaroni
just more info, http://blogs.msdn.com/chrsmith/archive/2008/09/12/scripting-in-f.aspx
tyndall