On Fri, Oct 17, 2014 at 10:38 PM, Empty Account <emptya45 at gmail.com> wrote: > I will be using this script on Unix based systems and I wondered what > approach I could use > to flush stdin? Why exactly do you need to flush stdin? If you've written a small amount of data to the console, it's stdout that you need to flush. ChrisA