Run process and read its output in F#
open System.IO
open System.Diagnostics
let cmd = new Process()
cmd.StartInfo.FileName <- "ls"
cmd.StartInfo.Arguments <- "-l /usr/bin"
cmd.StartInfo.UseShellExecute <- false
cmd.StartInfo.RedirectStandardOutput <- true
if cmd.Start() |> not then
...
syohex.hashnode.dev1 min read