Hi Chul-Woong, $ pwd | ./testprog ECHO result /tmp Your program works as you expect if you pipe some contents via STDIN. This is testprog.hs: main :: IO () main = do l <- fmap lines getContents putStrLn "ECHO result" putStr $ unlines l -Dan