dons did a blog post about a "shell monad" which I think does what you ask.
http://cgi.cse.unsw.edu.au/~dons/blog/2007/03 very nice, I use it myself. t. 2007/11/22, Maurício <[EMAIL PROTECTED]>: > Hi, > > How can I call a program (like, for instance, > 'grep text *') and get the standard output? > All actions I found (executeFile, system) do > not give me the output of the program. > > Thanks, > Maurício > > _______________________________________________ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe