in reply to Non-buffered read from program
Its not particularly about the whois command, but on how to obtain program output which blocks. The whois command is a perfect example for this.