Re: [Haskell-cafe] Re: Writing an 'expect'-like program with runInteractiveCommand

2008-05-02 Thread Graham Fawcett
On Fri, May 2, 2008 at 12:16 AM, Donn Cave [EMAIL PROTECTED] wrote: Graham Fawcett wrote: I would like to communicate with an external, line-oriented process, which takes a sequence of one-line commands, each returning an arbitrary number of lines, and waits for another command after each

[Haskell-cafe] Re: Writing an 'expect'-like program with runInteractiveCommand

2008-05-01 Thread ChrisK
Are you adjusting 'System.IO.hSetBuffering' to NoBuffering for those handles? Graham Fawcett wrote: Hi folks, I would like to communicate with an external, line-oriented process, which takes a sequence of one-line commands, each returning an arbitrary number of lines, and waits for another

Re: [Haskell-cafe] Re: Writing an 'expect'-like program with runInteractiveCommand

2008-05-01 Thread Donn Cave
Graham Fawcett wrote: I would like to communicate with an external, line-oriented process, which takes a sequence of one-line commands, each returning an arbitrary number of lines, and waits for another command after each response. So, something like: sendCmd :: (Handle, Handle) - String - IO