hi I need to read the command line standard out after executing a haskell command, i know there are two modules to execute system commands: System.Cmd
and System.Process
can anybody show me a simple example how to run the System.Process
functions?
here is a example what i need to do (i know there is System.Directory
to do that but i thought this is a good example):
ls -a
how can i do that?
import System.Process
test = readProcess "ls" ["-a"] ""
Do refer to the documentation for usage details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With