Flowdock
expect(pat,timeout=9999999) public

Reads ios until pattern matches or the timeout is over. It returns an array with the read buffer, followed by the matches. If a block is given, the result is yielded to the block and returns nil. The optional timeout parameter defines, in seconds, the total time to wait for pattern. If it is over of eof is found, it returns/yields nil. However, the buffer in a timeout session is kept for the next expect call. The default timeout is 9999999 seconds.

Show source
Register or log in to add new notes.