15 May 21:18
getting output from shell commands
Philip Müller <mail <at> philip.in-aachen.net>
2008-05-15 19:18:35 GMT
2008-05-15 19:18:35 GMT
Hi,
I would like to be able to run a shell command like curl and process the
output in my Haskell program, but I couldn't find anything helpful about it.
Something like
main = do
args <- getArgs
inp <- exec "curl" args
putStrLn (processInput inp)
would be very helpful.
Regards
Philip
RSS Feed