use stdbuf to turn off buffering for LocalMachine