quick example of capturing stdout of a socket daemon